Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
services
T
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
1952d0fc
Commit
1952d0fc
authored
Oct 06, 2017
by
Thomas Löffler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uses existing cachetool plugin to reset cache for stage
parent
7f38dcf0
Pipeline
#2441
failed with stages
in 2 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
.gitlab-ci/deployer/deploy.php
.gitlab-ci/deployer/deploy.php
+1
-4
No files found.
.gitlab-ci/deployer/deploy.php
View file @
1952d0fc
...
...
@@ -4,7 +4,6 @@ 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'
,
...
...
@@ -53,15 +52,13 @@ set('rsync_src', './');
set
(
'keep_releases'
,
10
);
serverList
(
'./.gitlab-ci/deployer/servers.yml'
);
server
(
'develop'
)
->
set
(
'cachetool'
,
'/var/run/php7-fpm-extensionsstage.sock'
);
server
(
'master'
)
->
set
(
'cachetool'
,
'/var/run/php7-fpm-extensions.sock'
);
task
(
'typo3'
,
function
()
{
run
(
'cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms install:generatepackagestates 0 1'
);
run
(
'cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms database:updateschema'
);
run
(
'cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms language:update'
);
run
(
'cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms install:fixfolderstructure'
);
run
(
'cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms cache:flush'
);
run
(
'cd ~ && ./cachetool.phar opcache:reset --fcgi=/var/run/php7-fpm-extensionsstage.sock'
);
});
task
(
'deploy'
,
[
...
...
Write
Preview
Markdown
is supported
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