Add dedicated deployer task for staging environment
This commit is contained in:
+22
@@ -107,6 +107,28 @@ task('deploy', [
|
|||||||
'cleanup',
|
'cleanup',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
task('deploy_staging', [
|
||||||
|
'deploy:info',
|
||||||
|
'deploy:prepare',
|
||||||
|
'deploy:lock',
|
||||||
|
'deploy:release',
|
||||||
|
'deploy:assets:build',
|
||||||
|
'rsync',
|
||||||
|
'deploy:clear_paths',
|
||||||
|
'deploy:shared',
|
||||||
|
'typo3:database:migrate',
|
||||||
|
'typo3:language:update',
|
||||||
|
'typo3:cache:flush',
|
||||||
|
'deploy:symlink',
|
||||||
|
'deploy:unlock',
|
||||||
|
'cachetool:clear:opcache',
|
||||||
|
'cleanup',
|
||||||
|
]);
|
||||||
|
|
||||||
|
task ('deploy:assets:build', function () {
|
||||||
|
runLocally('npm i && npm run build');
|
||||||
|
});
|
||||||
|
|
||||||
task('typo3:database:migrate', function () {
|
task('typo3:database:migrate', function () {
|
||||||
run('{{bin/php}} {{release_path}}/vendor/bin/typo3cms database:updateschema');
|
run('{{bin/php}} {{release_path}}/vendor/bin/typo3cms database:updateschema');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user