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 239e7b7 commit 7aa53e5Copy full SHA for 7aa53e5
Procfile
@@ -1 +1 @@
1
-web: pm2 start Ecosystem.json
+web: pm2 start server-config.json
package.json
@@ -6,7 +6,7 @@
6
"scripts": {
7
"preinstall": "npm i -g pm2 && npm install -g babel-cli",
8
"dev": "pm2 start server.js --interpreter babel-node --attach --watch",
9
- "start": "pm2 start Ecosystem.json"
+ "start": "pm2 start server-config.json"
10
},
11
"author": "Renan Lopes",
12
"license": "ISC",
Ecosystem.json renamed to server-config.json
@@ -5,7 +5,8 @@
5
"script": "./server.js",
"exec_interpreter": "babel-node",
"instances": "max",
- "exec_mode": "cluster"
+ "exec_mode": "cluster",
+ "post-deploy": "npm install && pm2 restart production"
}
]
0 commit comments