Add staging

This commit is contained in:
Jannis Portmann 2022-01-24 17:40:19 +01:00
parent a034a6118a
commit 61b861b510

View file

@ -4,7 +4,7 @@ namespace Deployer;
require 'recipe/symfony4.php'; require 'recipe/symfony4.php';
// Project name // Project name
set('application', 'beta.pflaenz.li'); set('application', 'pflaenz.li');
// Project repository // Project repository
set('repository', 'ssh://git@git.thisfro.ch:222/thisfro/pflaenz.li.git'); set('repository', 'ssh://git@git.thisfro.ch:222/thisfro/pflaenz.li.git');
@ -28,15 +28,21 @@ add('shared_dirs', ['public/uploads']);
add('writable_dirs', []); add('writable_dirs', []);
// Set composer options // 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 // Hosts
host('beta.pflaenz.li') host('beta.pflaenz.li')
->user('lq5xi_thisfro') ->user('lq5xi_thisfro')
->set('deploy_path', '~/sites/{{application}}') ->set('deploy_path', '~/sites/{{stage}}.{{application}}')
->set('http_user', 'uid153060') ->set('http_user', 'uid153060')
->stage('beta'); ->stage('beta');
host('beta.pflaenz.li')
->user('lq5xi_thisfro')
->set('deploy_path', '~/sites/{{stage}}.{{application}}')
->set('http_user', 'uid153060')
->stage('staging');
// Tasks // Tasks
task('upload:build', function() { task('upload:build', function() {