mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-21 16:28:12 +00:00
Fix merge conflicts
This commit is contained in:
+16
-1
@@ -226,10 +226,25 @@ const main = async () => {
|
||||
// await createTestUserForDevelopment();
|
||||
setUpHealthEndpoint(server);
|
||||
|
||||
server.on("close", async () => {
|
||||
|
||||
const serverCleanup = async () => {
|
||||
await DatabaseService.closeDatabase();
|
||||
syncSecretsToThirdPartyServices.close();
|
||||
githubPushEventSecretScan.close();
|
||||
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
process.on("SIGINT", function () {
|
||||
server.close(async () => {
|
||||
await serverCleanup()
|
||||
});
|
||||
});
|
||||
|
||||
process.on("SIGTERM", function () {
|
||||
server.close(async () => {
|
||||
await serverCleanup()
|
||||
});
|
||||
});
|
||||
|
||||
return server;
|
||||
|
||||
Reference in New Issue
Block a user