use pm2 to use multiple process

This commit is contained in:
tim-hub 2023-08-31 17:51:36 +12:00
parent 19ec38a411
commit a12a60f86c
2 changed files with 662 additions and 23 deletions

View file

@ -16,7 +16,8 @@
"build-docker": "npm-run-all build-db build-tracker build-geo build-app",
"start-docker": "npm-run-all check-db update-tracker start-server",
"start-env": "node scripts/start-env.js",
"start-server": "node server.js",
"start-server": "pm2 start server.js -i 0",
"stop-server": "pm2 stop server.js",
"build-app": "next build",
"build-components": "rollup -c rollup.components.config.mjs",
"build-tracker": "rollup -c rollup.tracker.config.mjs",
@ -95,6 +96,7 @@
"next-basics": "^0.36.0",
"node-fetch": "^3.2.8",
"npm-run-all": "^4.1.5",
"pm2": "^5.3.0",
"react": "^18.2.0",
"react-basics": "^0.98.0",
"react-beautiful-dnd": "^13.1.0",