diff --git a/deploy.php b/deploy.php index 0015f81a..c76c0179 100644 --- a/deploy.php +++ b/deploy.php @@ -107,6 +107,28 @@ task('deploy', [ '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 () { run('{{bin/php}} {{release_path}}/vendor/bin/typo3cms database:updateschema'); });