()
| 139 | console.log(`[dev-db] Listening on postgresql://postgres:postgres@127.0.0.1:${PORT}/postgres`); |
| 140 | |
| 141 | const shutdown = async () => { |
| 142 | console.log("\n[dev-db] Shutting down"); |
| 143 | await server.stop(); |
| 144 | await db.close(); |
| 145 | process.exit(0); |
| 146 | }; |
| 147 | |
| 148 | process.on("SIGINT", shutdown); |
| 149 | process.on("SIGTERM", shutdown); |