We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad2619a commit 25f38f8Copy full SHA for 25f38f8
Procfile
@@ -1 +1 @@
1
-web: node server.js
+web: pm2 start server.js && pm2 logs all
package.json
@@ -3,6 +3,7 @@
3
"version": "2.0.0",
4
"description": "NodeJS REST API is a open code NodeJS Back End API",
5
"scripts": {
6
+ "preinstall": "npm i -g pm2 && pm2 install pm2-logrotate",
7
"dev": "pm2 start server.js --watch",
8
"start": "node ./node_modules/.bin/pm2 start server.js"
9
},
0 commit comments