mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 08:45:04 +01:00
Cache must be cleared before it's warmed up
See: http://symfony.com/doc/current/deployment.html#d-clear-your-symfony-cache
This commit is contained in:
parent
15274524b2
commit
2758eadff1
@ -102,6 +102,12 @@ task('deploy:assetic:dump', function () {
|
||||
}
|
||||
})->desc('Dump assets');
|
||||
|
||||
/**
|
||||
* Clear Cache
|
||||
*/
|
||||
task('deploy:cache:clear', function () {
|
||||
run('{{env_vars}} {{bin/php}} {{bin/console}} cache:clear {{console_options}} --no-debug --no-warmup');
|
||||
})->desc('Clear cache');
|
||||
|
||||
/**
|
||||
* Warm up cache
|
||||
@ -134,6 +140,7 @@ task('deploy', [
|
||||
'deploy:vendors',
|
||||
'deploy:assets:install',
|
||||
'deploy:assetic:dump',
|
||||
'deploy:cache:clear',
|
||||
'deploy:cache:warmup',
|
||||
'deploy:writable',
|
||||
'deploy:symlink',
|
||||
|
Loading…
x
Reference in New Issue
Block a user