Skip to content

Commit b9dff5d

Browse files
committed
PEER-236: Add chat dev server and graceful termination
Signed-off-by: SeeuSim <[email protected]>
1 parent 8504789 commit b9dff5d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

backend/chat/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const shutdown = () => {
2626
})
2727
.then(() => {
2828
logger.info('App shut down');
29+
process.exit(0);
2930
});
3031
});
3132
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"dev": "concurrently --names user,qn,collab,match,fe --pad-prefix \"npm run dev:user\" \"npm run dev:question\" \"npm run dev:collab\" \"npm run dev:match\" \"npm run dev:frontend\"",
6+
"dev": "concurrently --names user,qn,collab,match,chat,fe --pad-prefix \"npm run dev:user\" \"npm run dev:question\" \"npm run dev:collab\" \"npm run dev:match\" \"npm run dev:chat\" \"npm run dev:frontend\"",
77
"dev:frontend": "npm run dev -w frontend",
88
"dev:user": "npm run dev -w user",
99
"dev:question": "npm run dev -w question",
1010
"dev:collab": "npm run dev -w collaboration",
1111
"dev:match": "npm run dev -w matching",
12+
"dev:chat": "npm run dev -w chat",
1213
"build": "npm run build --workspaces --if-present",
1314
"fmt": "prettier --config .prettierrc \"./**/*.{ts,tsx}\" --write",
1415
"lint": "eslint --config .eslintrc.json \"./**/*.{ts,tsx}\" --fix",

0 commit comments

Comments
 (0)