I have a site that deploys from SVN to various servers. (Dev, Staging and Production). I have a fairly straight forward script that runs the SVN update, the runs sake like so:
sake dev/build flush=all
All works fine, however when you go to the live site it's as if the flush=all didn't run. I then have to login as admin and run the flush=all as a url parameter otherwise it doesn't find new templates and classes.
I'm using an _ss_environment file to specify the domain names as so:
// Staging
$_FILE_TO_URL_MAPPING['/home/user/public_html'] = 'http://www.sitename.com/';
It's like two different caches are being kept. One for sake, and one for the site.
This makes deployment a little slower than I'd like. Any idea why the flush=all through sake isn't working on the site itself?
These sites are in "test" and "live" modes. I'm not sure if this fails in dev mode as I don't need to deploy to that site as it's the dev site.