diff --git a/Jenkinsfile b/Jenkinsfile index c8718ea..2e74a06 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ node { stage('Deploy staging') { // Deploy to staging host - sh 'vendor/bin/dep deploy lq5xi.ftp.infomaniak.com --no-interaction' + sh 'vendor/bin/dep deploy staging' } /* diff --git a/deploy.php b/deploy.php index 5b71edb..b9d0ac1 100644 --- a/deploy.php +++ b/deploy.php @@ -1,7 +1,7 @@ set('remote_user', 'lq5xi_thisfro') +host('beta.pflaenz.li') + ->user('lq5xi_thisfro') ->set('deploy_path', '~/sites/{{stage}}.{{application}}') ->set('http_user', 'uid153060') - ->set('stage', 'beta'); + ->stage('beta'); // Tasks @@ -45,9 +45,9 @@ task('upload:build', function() { // Build yarn locally task('deploy:build:assets', function (): void { - runLocally('yarn install'); - runLocally('yarn encore production'); -})->desc('Install front-end assets'); + run('yarn install'); + run('yarn encore production'); +})->local()->desc('Install front-end assets'); before('deploy:symlink', 'deploy:build:assets');