Working deployer config
This commit is contained in:
parent
f7126dba43
commit
fa03bfde3d
1 changed files with 11 additions and 5 deletions
16
deploy.php
16
deploy.php
|
@ -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');
|
Reference in a new issue