diff --git a/deploy.php b/deploy.php index a83e476..a65a4df 100644 --- a/deploy.php +++ b/deploy.php @@ -78,17 +78,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') + ->setDeployPath('/home/www/p704161/html/myep') ->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('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_or_current_path}}/public/ --web-url=https://my.ep-reisen.de') + ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://my.ep-reisen.de') ; host('staging') @@ -101,8 +101,7 @@ host('staging') ->set('bin/php', '/usr/local/bin/php') ->set('rsync_src', __DIR__) ->set('rsync', $rsyncOptions) - ->set('keep_releases', 5) - ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_or_current_path}}/public/ --web-url=https://myep.dreipunktnull.net') + ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://myep.dreipunktnull.net') ; task('deploy', [ @@ -114,9 +113,10 @@ task('deploy', [ 'rsync', 'deploy:shared', 'deploy:writable', + 'deploy:cache:clear', 'database:migrate', - 'deploy:publish', 'cachetool:clear:opcache', + 'deploy:publish', 'deploy:stop-workers', ]);