Skip to content

Commit 7aa53e5

Browse files
Test Heroku Cluster
1 parent 239e7b7 commit 7aa53e5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: pm2 start Ecosystem.json
1+
web: pm2 start server-config.json

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"preinstall": "npm i -g pm2 && npm install -g babel-cli",
88
"dev": "pm2 start server.js --interpreter babel-node --attach --watch",
9-
"start": "pm2 start Ecosystem.json"
9+
"start": "pm2 start server-config.json"
1010
},
1111
"author": "Renan Lopes",
1212
"license": "ISC",

Ecosystem.json renamed to server-config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"script": "./server.js",
66
"exec_interpreter": "babel-node",
77
"instances": "max",
8-
"exec_mode": "cluster"
8+
"exec_mode": "cluster",
9+
"post-deploy": "npm install && pm2 restart production"
910
}
1011
]
1112
}

0 commit comments

Comments
 (0)