iCantSneed / mati-superchats

MATI superchats archiver
https://mati.x10.mx
GNU Affero General Public License v3.0
0 stars 0 forks source link

Delete cache directory after uploading files during deployment #110

Open iCantSneed opened 3 weeks ago

iCantSneed commented 3 weeks ago

If the signature for a critical file changes, the post-deploy actions can fail because the container tries to incorrectly load a source file. The stale var/prod/Container* directories should be removed prior to running those actions.

Consider removing calls to cache:clear with a directory removal process, to be run as the first command (before composer). Cache will be rebuilt once the other post-deploy actions will be run.

iCantSneed commented 3 weeks ago

Amendment: after deploying a new version, the index page displays the old version number. That's because the twig templates also get cached. Therefore, to be on the safe side that we have no stale data, the entire cache directory is to be deleted.