Working deployer config

This commit is contained in:
Jannis Portmann 2022-01-11 22:43:43 +01:00
parent f7126dba43
commit fa03bfde3d

View file

@ -26,9 +26,8 @@ set('composer_options', '{{composer_action}} --verbose --prefer-dist --no-progre
host('beta.xn--pflnz-ira.li')
->user('lq5xi_thisfro')
->set('deploy_path', '~/sites/{{application}}');
set('http_user', 'uid153060');
->set('deploy_path', '~/sites/{{application}}')
->set('http_user', 'uid153060');
// Tasks
@ -49,10 +48,17 @@ task('upload:assets', function (): void {
upload(__DIR__.'/public/build/', '{{release_path}}/public/build');
});
task('upload:build', function() {
upload("public/build/", '{{release_path}}/public/build/');
});
task('upload:build', function() {
upload("public/build/", '{{release_path}}/public/build/');
});
after('deploy:build:assets', 'upload:assets');
// [Optional] if deploy fails automatically unlock.
after('deploy:failed', 'deploy:unlock');
// Migrate database before symlink new release.
before('deploy:symlink', 'database:migrate');
before('deploy:symlink', 'database:migrate');