From 61b861b5106802179b56f41bf6363e8701ed0d21 Mon Sep 17 00:00:00 2001 From: thisfro Date: Mon, 24 Jan 2022 17:40:19 +0100 Subject: [PATCH] Add staging --- deploy.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/deploy.php b/deploy.php index 3fd7a44..c6c8ee9 100644 --- a/deploy.php +++ b/deploy.php @@ -4,7 +4,7 @@ namespace Deployer; require 'recipe/symfony4.php'; // Project name -set('application', 'beta.pflaenz.li'); +set('application', 'pflaenz.li'); // Project repository set('repository', 'ssh://git@git.thisfro.ch:222/thisfro/pflaenz.li.git'); @@ -28,15 +28,21 @@ add('shared_dirs', ['public/uploads']); add('writable_dirs', []); // Set composer options -set('composer_options', '{{composer_action}} --verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader --no-scripts --no-dev'); +set('composer_options', '{{composer_action}} --verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader --no-scripts'); // Hosts host('beta.pflaenz.li') ->user('lq5xi_thisfro') - ->set('deploy_path', '~/sites/{{application}}') + ->set('deploy_path', '~/sites/{{stage}}.{{application}}') ->set('http_user', 'uid153060') ->stage('beta'); +host('beta.pflaenz.li') + ->user('lq5xi_thisfro') + ->set('deploy_path', '~/sites/{{stage}}.{{application}}') + ->set('http_user', 'uid153060') + ->stage('staging'); + // Tasks task('upload:build', function() {