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() {