Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
t3o
my.typo3.org
Commits
edb978c4
Commit
edb978c4
authored
Jan 18, 2018
by
Thomas Löffler
Browse files
Adds opcache clearing during deploy
parent
b3d93337
Pipeline
#3227
failed with stages
in 2 minutes and 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci/deployer/deploy.php
View file @
edb978c4
...
...
@@ -4,6 +4,8 @@ namespace Deployer;
require_once
'/composer/vendor/deployer/deployer/recipe/common.php'
;
require_once
'/composer/vendor/deployer/recipes/rsync.php'
;
require_once
'/composer/vendor/deployer/recipes/cachetool.php'
;
$sharedDirectories
=
[
'html/fileadmin'
,
...
...
@@ -60,6 +62,12 @@ task('typo3', function () {
run
(
'cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms cache:flush'
);
});
set
(
'bin/php'
,
'/opt/php/php70/bin/php'
);
server
(
'production'
)
->
set
(
'cachetool'
,
'/var/run/php7-fpm-tthreeorg.sock'
);
server
(
'stage'
)
->
set
(
'cachetool'
,
'/var/run/php7-fpm-tthreestage.sock'
);
task
(
'deploy'
,
[
'deploy:prepare'
,
'deploy:release'
,
...
...
@@ -68,6 +76,7 @@ task('deploy', [
'deploy:shared'
,
'deploy:writable'
,
'deploy:symlink'
,
'cachetool:clear:opcache'
,
'cleanup'
,
'typo3'
]);
.gitlab-ci/deployer/servers.yml
View file @
edb978c4
master
:
stage
:
production
host
:
my.typo3.org
port
:
22193
user
:
my
forward_agent
:
true
deploy_path
:
~/ci
develop
:
stage
:
stage
host
:
my-stage.typo3.org
port
:
22191
user
:
mystage
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment