chore: implement hourly reset CronJob for prod and UAT
- Add ALLOW_RESET env var override to reset.ts safety guard - Add reset Docker build target to Dockerfile - Add reset image build step to CI docker job - Add reset image tag update to CD job dev overlay update Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit was merged in pull request #240.
This commit is contained in:
@@ -16,8 +16,8 @@ async function reset() {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
console.error("[FATAL] db:reset must not be run in production.");
|
||||
if (process.env.NODE_ENV === "production" && process.env.ALLOW_RESET !== "true") {
|
||||
console.error("[FATAL] db:reset must not be run in production without ALLOW_RESET=true.");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user