From a6e4b205f7407f0f6004e68e063b547bb35c252c Mon Sep 17 00:00:00 2001 From: Jannis Portmann Date: Wed, 8 Feb 2023 17:11:54 +0100 Subject: [PATCH 1/2] Use deployer 7.x --- deploy.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/deploy.php b/deploy.php index b9d0ac1..5b71edb 100644 --- a/deploy.php +++ b/deploy.php @@ -1,7 +1,7 @@ user('lq5xi_thisfro') +host('lq5xi.ftp.infomaniak.com') + ->set('remote_user', 'lq5xi_thisfro') ->set('deploy_path', '~/sites/{{stage}}.{{application}}') ->set('http_user', 'uid153060') - ->stage('beta'); + ->set('stage', 'beta'); // Tasks @@ -45,9 +45,9 @@ task('upload:build', function() { // Build yarn locally task('deploy:build:assets', function (): void { - run('yarn install'); - run('yarn encore production'); -})->local()->desc('Install front-end assets'); + runLocally('yarn install'); + runLocally('yarn encore production'); +})->desc('Install front-end assets'); before('deploy:symlink', 'deploy:build:assets'); From 80ef8caf206ed8a4b55b78d3c0060de7b9b84ac4 Mon Sep 17 00:00:00 2001 From: Jannis Portmann Date: Wed, 8 Feb 2023 17:23:24 +0100 Subject: [PATCH 2/2] Update command --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2e74a06..c8718ea 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ node { stage('Deploy staging') { // Deploy to staging host - sh 'vendor/bin/dep deploy staging' + sh 'vendor/bin/dep deploy lq5xi.ftp.infomaniak.com --no-interaction' } /*