File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 66 "author" : " AppSeed.us" ,
77 "main" : " src/index" ,
88 "scripts" : {
9- "start" : " yarn build && node build/index.js" ,
9+ "start" : " pm2 start production.config.json" ,
10+ "start-no-daemon" : " pm2 start production.config.json --no-daemon" ,
11+ "start-node" : " yarn build && node build/index.js" ,
1012 "dev" : " ts-node-dev src/index.ts" ,
1113 "test" : " jest -i --colors --verbose --detectOpenHandles" ,
1214 "lint" : " eslint src --ext .ts" ,
2527 "jsonwebtoken" : " ^8.5.1" ,
2628 "mongoose" : " ^5.13.2" ,
2729 "passport" : " ^0.4.1" ,
30+ "pm2" : " ^5.1.0" ,
2831 "passport-jwt" : " ^4.0.0"
2932 },
3033 "devDependencies" : {
Original file line number Diff line number Diff line change 1+ {
2+ "apps" : [{
3+ "name" : " nodejs_api" ,
4+ "script" : " build/index.js" ,
5+ "instances" : 1 ,
6+ "autorestart" : true ,
7+ "watch" : false ,
8+ "time" : true ,
9+ "env" : {
10+ "NODE_ENV" : " production"
11+ }
12+ }]
13+ }
You can’t perform that action at this time.
0 commit comments