Unverified Commit 7b670713 authored by xanderio's avatar xanderio Committed by GitHub
Browse files

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

parents 734f61d2 5205c8b5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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