diff --git a/deploy.php b/deploy.php index 140f575..d055238 100644 --- a/deploy.php +++ b/deploy.php @@ -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', ]);