From 8eaa53c74dd2ad55e59631c957c9089b9bd23bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sun, 25 Jan 2026 13:56:51 +0100 Subject: [PATCH] chore: update deployer config for new hosting environment --- deploy.php | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/deploy.php b/deploy.php index 7439d46..72fa28f 100644 --- a/deploy.php +++ b/deploy.php @@ -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');