You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
namespace Deployer;
require 'recipe/statamic.php';
// Config
set('repository', '<repo url>');
set('update_code_strategy', 'clone');
add('shared_files', []);
add('shared_dirs', []);
add('writable_dirs', []);
// Hosts
host('production')
->set('hostname', '<host>>')
->set('remote_user', 'app')
->set('deploy_path', '~/production')
->set('writable_mode', 'chmod');
// Clear cache task
task('clear_cache', function () {
run('{{bin/php}} {{release_or_current_path}}/please cache:clear');
});
// Hooks
/*
* Clear cache, since images are not generated automatically when cache is not cleared
*/
after('deploy:unlock', 'clear_cache');
after('deploy:failed', 'deploy:unlock');
Steps to reproduce
Deploy with above receipe.
The problem is that statamic:stache:warm fails very often, this is because the stache is build as part of the release instead of after deployment has finished and moved to current. When I remove the statamic:stache:warm from deploy task and place it after deploy:unlock, problems are gone.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Deployer Version
v7.3.1
Target OS
Debian
Which PHP version are you using?
PHP 8.2
Content of deploy.php or deploy.yaml
Steps to reproduce
Deploy with above receipe.
The problem is that
statamic:stache:warm
fails very often, this is because the stache is build as part of the release instead of after deployment has finished and moved to current. When I remove thestatamic:stache:warm
from deploy task and place it after deploy:unlock, problems are gone.Beta Was this translation helpful? Give feedback.
All reactions