forked from keldaanCommunity/pokemonAutoChess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.config.js
28 lines (27 loc) · 882 Bytes
/
ecosystem.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// ecosystem.config.js
const os = require("os");
module.exports = {
apps: [{
name : "colyseus",
script : "./app/public/dist/server/app/index.js", // your entrypoint file
instances : os.cpus().length,
exec_mode : "fork", // IMPORTANT: do not use cluster mode.
watch : false,
time : true,
wait_ready : true,
env_production: {
NODE_ENV: "production"
},
interpreter: "[email protected]"
}],
deploy : {
production : {
"user" : "deploy",
"host" : ["45.76.130.174"],
"ref" : "origin/prod",
"repo" : "[email protected]:keldaanCommunity/pokemonAutoChess.git",
"path" : "/home/deploy",
"post-deploy" : "npm install && npm run build && npm run colyseus-post-deploy"
}
}
}