()
| 123 | console.log(`[dev-db] Listening on postgresql://postgres:postgres@127.0.0.1:${PORT}/postgres`); |
| 124 | |
| 125 | const shutdown = async () => { |
| 126 | console.log("\n[dev-db] Shutting down"); |
| 127 | await server.stop(); |
| 128 | await db.close(); |
| 129 | process.exit(0); |
| 130 | }; |
| 131 | |
| 132 | process.on("SIGINT", shutdown); |
| 133 | process.on("SIGTERM", shutdown); |