nixos/snipe-it: clear and rebuild caches on startup (#402827)

authored by xanderio and committed by GitHub 7b670713 734f61d2

+3 -2
+3 -2
nixos/modules/services/web-apps/snipe-it.nix
··· 509 sed -i 's/APP_KEY=/APP_KEY=base64:/' "${cfg.dataDir}/.env" 510 fi 511 512 - # purge cache 513 - rm "${cfg.dataDir}"/bootstrap/cache/*.php || true 514 515 # migrate db 516 ${lib.getExe artisan} migrate --force
··· 509 sed -i 's/APP_KEY=/APP_KEY=base64:/' "${cfg.dataDir}/.env" 510 fi 511 512 + # pruge and rebuild caches 513 + ${lib.getExe artisan} optimize:clear 514 + ${lib.getExe artisan} optimize 515 516 # migrate db 517 ${lib.getExe artisan} migrate --force