Skip to content

Commit 25f38f8

Browse files
Fix: PM2 Procfile Heroku
1 parent ad2619a commit 25f38f8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: node server.js
1+
web: pm2 start server.js && pm2 logs all

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "2.0.0",
44
"description": "NodeJS REST API is a open code NodeJS Back End API",
55
"scripts": {
6+
"preinstall": "npm i -g pm2 && pm2 install pm2-logrotate",
67
"dev": "pm2 start server.js --watch",
78
"start": "node ./node_modules/.bin/pm2 start server.js"
89
},

0 commit comments

Comments
 (0)