feat: clear opcache after deployment

This commit is contained in:
Björn Fromme
2023-11-13 17:54:52 +01:00
parent 4538c3058d
commit 7b3cb7c771
+4 -1
View File
@@ -2,8 +2,9 @@
namespace Deployer;
require 'recipe/symfony.php';
require 'contrib/cachetool.php';
require 'contrib/rsync.php';
require 'recipe/symfony.php';
add('shared_dirs', [
'uploads',
@@ -76,6 +77,7 @@ host('develop')
->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://myep-team.dreipunktnull.net')
;
task('deploy', [
@@ -89,6 +91,7 @@ task('deploy', [
'deploy:writable',
'database:migrate',
'deploy:publish',
'cachetool:clear:opcache',
// 'deploy:stop-workers',
]);