From b41baf769b21222583a42c13068eef7545d5e7fa Mon Sep 17 00:00:00 2001 From: Kishore <42832651+kishore03109@users.noreply.github.com> Date: Tue, 2 Apr 2024 18:18:49 +0800 Subject: [PATCH] fix(server): server should die if unable to connect to db --- src/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index 894dae598..454e56e6f 100644 --- a/src/server.js +++ b/src/server.js @@ -487,5 +487,5 @@ sequelize // If we cannot connect to the db, report an error using status code // And gracefully shut down the application since we can't serve client - process.exitCode = 1 + process.exit(1) })