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';
// 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() {