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