Merge remote-tracking branch 'origin' into pg-ssl

This commit is contained in:
Tuan Dang
2024-02-03 15:16:47 -08:00
232 changed files with 2524 additions and 4438 deletions
+4 -2
View File
@@ -22,19 +22,21 @@ const run = async () => {
const server = await main({ db, smtp, logger, queue });
const bootstrap = await bootstrapCheck({ db });
// eslint-disable-next-line
process.on("SIGINT", async () => {
await server.close();
await db.destroy();
process.exit(0);
});
// eslint-disable-next-line
process.on("SIGTERM", async () => {
await server.close();
await db.destroy();
process.exit(0);
});
server.listen({
await server.listen({
port: appCfg.PORT,
host: appCfg.HOST,
listenTextResolver: (address) => {
@@ -44,4 +46,4 @@ const run = async () => {
});
};
run();
void run();