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' } /* 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');