mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
nixos/snipe-it: clear and rebuild caches on startup
This commit is contained in:
parent
0bda45d541
commit
5205c8b5ca
1 changed files with 3 additions and 2 deletions
|
@ -509,8 +509,9 @@ in
|
|||
sed -i 's/APP_KEY=/APP_KEY=base64:/' "${cfg.dataDir}/.env"
|
||||
fi
|
||||
|
||||
# purge cache
|
||||
rm "${cfg.dataDir}"/bootstrap/cache/*.php || true
|
||||
# pruge and rebuild caches
|
||||
${lib.getExe artisan} optimize:clear
|
||||
${lib.getExe artisan} optimize
|
||||
|
||||
# migrate db
|
||||
${lib.getExe artisan} migrate --force
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue