Skip to content

Commit 516d2de

Browse files
shl0501yu-yj215
andauthored
fix: modify pm2 script (#252)
Co-authored-by: yu-yj215 <[email protected]>
1 parent d5ef77f commit 516d2de

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

apps/server/ecosystem.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,20 @@ module.exports = {
33
{
44
name: 'http-server',
55
script: 'pnpm',
6-
args: 'run start:prod',
6+
args: 'run start:prod:http',
77
interpreter: 'none',
88
cwd: './',
99
env: {
10-
NODE_ENV: 'production',
1110
PORT: 3000,
1211
},
1312
},
1413
{
1514
name: 'ws-server',
1615
script: 'pnpm',
17-
args: 'run start:prod',
16+
args: 'run start:prod:ws',
1817
interpreter: 'none',
1918
cwd: './',
2019
env: {
21-
NODE_ENV: 'production',
2220
PORT: 4000,
2321
},
2422
},

apps/server/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"start": "nest start",
1212
"start:dev": "nest start --watch",
1313
"start:debug": "nest start --debug --watch",
14-
"start:prod": "node dist/main",
14+
"start:prod:http": "node dist/main http",
15+
"start:prod:ws": "node dist/main ws",
1516
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
1617
"test": "jest",
1718
"test:watch": "jest --watch",

0 commit comments

Comments
 (0)