Added names for PM2 production processes

This commit is contained in:
ireic
2020-01-11 19:20:54 +01:00
parent 27b8578167
commit dc5c8b835e
2 changed files with 2 additions and 2 deletions

View File

@@ -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"
},

View File

@@ -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",