mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
graceful exit for drizzle migration
This commit is contained in:
@@ -21,14 +21,8 @@ if (env.DATABASE_SSL_CERT) {
|
||||
}
|
||||
|
||||
process.once('exit', cleanup)
|
||||
process.once('SIGINT', () => {
|
||||
cleanup()
|
||||
process.exit(0)
|
||||
})
|
||||
process.once('SIGTERM', () => {
|
||||
cleanup()
|
||||
process.exit(0)
|
||||
})
|
||||
process.once('SIGINT', cleanup)
|
||||
process.once('SIGTERM', cleanup)
|
||||
} catch {
|
||||
// If writing fails, leave sslConfig undefined and allow connection to fail fast
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user