Added names for PM2 production processes
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"start": "nodemon --exec ts-node --files src/index.ts",
|
||||
"start:test": "cross-env NODE_ENV='test' DB_DATABASE='jira_test' npm start",
|
||||
"start:production": "pm2 start node -- -r ./tsconfig-paths.js build/index.js",
|
||||
"start:production": "pm2 start --name 'jira_api' node -- -r ./tsconfig-paths.js build/index.js",
|
||||
"build": "cd src && tsc",
|
||||
"pre-commit": "lint-staged"
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"start": "webpack-dev-server",
|
||||
"start:production": "pm2 start server.js",
|
||||
"start:production": "pm2 start --name 'jira_client' server.js",
|
||||
"test:jest": "jest",
|
||||
"test:cypress": "node_modules/.bin/cypress open",
|
||||
"build": "rm -rf build && webpack --config webpack.config.production.js --progress",
|
||||
|
||||
Reference in New Issue
Block a user