I'd like to deploy into multiple folders on one server #3845
Answered
by
antonmedv
sts-ryan-holton
asked this question in
Help needed
-
Hi, I have a server and I need to deploy multiple isntances of my project with different configurations for each instance. So anotherwords I need my
My current <?php
namespace Deployer;
require 'recipe/common.php';
require 'contrib/npm.php';
require 'deploy/recipe/fudge-nuxt.php';
// Project repository
set('repository', 'git@application-fudge:company/application-fudge.git');
// Shared files/dirs between deploys
add('shared_files', ['.env', 'brand-theme.scss']);
// Set number of releases to keep
set('keep_releases', 2);
// Writable dirs by web server
set('allow_anonymous_stats', false);
// Site: Fudge
host('my-ip')
->set('labels', ['stage' => 'forms'])
->set('repository', 'git@application-fudge:company/application-fudge')
->set('branch', 'feature/fudge_v2')
->set('remote_user', 'root')
->set('deploy_path', '/var/www/forms/fudge/site1');
after('deploy:update_code', 'npm:install');
after('npm:install', 'deploy:vendors');
after('deploy:writable', 'nuxt:generate');
after('deploy:failed', 'deploy:unlock'); |
Beta Was this translation helpful? Give feedback.
Answered by
antonmedv
Jun 7, 2024
Replies: 1 comment 1 reply
-
Use host aliases |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sts-ryan-holton
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use host aliases