feat: clear opcache after deployment
This commit is contained in:
+4
-1
@@ -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',
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user