Skip to content

Commit 8af4616

Browse files
committed
Update shutdown condition to prevent application exit in development environment
1 parent d1a0b9e commit 8af4616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend-runner/backend-runner.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class BackendRunnerService implements OnApplicationBootstrap, OnModuleIni
7272
this.redis.on('close', () => {
7373
this.logger.fatal(`Redis connection closed 🟥`);
7474

75-
if (process.env.NODE_ENV === 'production') {
75+
if (process.env.NODE_ENV !== 'development') {
7676
this.logger.fatal(`Closing application...`);
7777
process.exit(1);
7878
}

0 commit comments

Comments
 (0)