chore: update deployer config for new hosting environment
This commit is contained in:
+12
-14
@@ -18,6 +18,8 @@ add('shared_files', [
|
||||
'.env.local.php',
|
||||
]);
|
||||
|
||||
set('keep_releases', 3);
|
||||
|
||||
// Rsync options, mainly files/dirs to exclude
|
||||
$rsyncOptions = [
|
||||
'exclude' => [
|
||||
@@ -28,6 +30,7 @@ $rsyncOptions = [
|
||||
'.ddev',
|
||||
'.git',
|
||||
'.github',
|
||||
'.jj',
|
||||
'node_modules',
|
||||
'.editorconfig',
|
||||
'.env.dev.local',
|
||||
@@ -39,6 +42,7 @@ $rsyncOptions = [
|
||||
'.php-cs-fixer.cache',
|
||||
'.php-cs-fixer.dist.php',
|
||||
'.phpunit.result.cache',
|
||||
'CLAUDE.md',
|
||||
'deploy.php',
|
||||
'package.json',
|
||||
'package-lock.json',
|
||||
@@ -67,18 +71,17 @@ $rsyncOptions = [
|
||||
];
|
||||
|
||||
host('prod')
|
||||
->setHostname('92.205.212.39')
|
||||
->setRemoteUser('ssh-53857-root')
|
||||
->setHostname('185.243.135.29')
|
||||
->setRemoteUser('p704161')
|
||||
->setForwardAgent(true)
|
||||
->setSshMultiplexing(true)
|
||||
->setDeployPath('/kunden/tiefschnee.de/myep-team')
|
||||
->setDeployPath('/home/www/p704161/html/myep-team')
|
||||
->set('writable_mode', 'chmod')
|
||||
->set('http_user', 'ssh-53857-root')
|
||||
->set('bin/php', '/usr/bin/php82')
|
||||
->set('http_user', 'p704161')
|
||||
->set('bin/php', '/usr/local/bin/php')
|
||||
->set('rsync_src', __DIR__)
|
||||
->set('rsync', $rsyncOptions)
|
||||
->set('keep_releases', 3)
|
||||
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_or_current_path}}/public/ --web-url=https://myep-team.ep-reisen.de')
|
||||
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://myep-team.ep-reisen.de')
|
||||
;
|
||||
|
||||
host('staging')
|
||||
@@ -91,7 +94,6 @@ host('staging')
|
||||
->set('bin/php', '/usr/local/bin/php')
|
||||
->set('rsync_src', __DIR__)
|
||||
->set('rsync', $rsyncOptions)
|
||||
->set('keep_releases', 3)
|
||||
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_or_current_path}}/public/ --web-url=https://myep-team.dreipunktnull.net')
|
||||
;
|
||||
|
||||
@@ -104,10 +106,10 @@ task('deploy', [
|
||||
'rsync',
|
||||
'deploy:shared',
|
||||
'deploy:writable',
|
||||
'deploy:cache:clear',
|
||||
'database:migrate',
|
||||
'deploy:publish',
|
||||
'cachetool:clear:opcache',
|
||||
// 'deploy:thumbnails',
|
||||
'deploy:publish',
|
||||
'deploy:stop-workers',
|
||||
]);
|
||||
|
||||
@@ -119,8 +121,4 @@ task('deploy:assets', function () {
|
||||
runLocally('npm i && npm run build');
|
||||
});
|
||||
|
||||
task('deploy:thumbnails', function () {
|
||||
run('{{bin/console}} app:generate-thumbnails');
|
||||
});
|
||||
|
||||
after('deploy:failed', 'deploy:unlock');
|
||||
|
||||
Reference in New Issue
Block a user