From fa03bfde3d99740944ad3902aa73dcb399fd5473 Mon Sep 17 00:00:00 2001 From: Jannis Portmann Date: Tue, 11 Jan 2022 22:43:43 +0100 Subject: [PATCH] Working deployer config --- deploy.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/deploy.php b/deploy.php index 3b55a71..3ade76a 100644 --- a/deploy.php +++ b/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'); \ No newline at end of file