forked from keldaanCommunity/pokemonAutoChess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
36 lines (35 loc) · 1.12 KB
/
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
29
30
31
32
33
34
35
36
// 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" : "root",
"host" : ["146.190.113.96"],
"ref" : "origin/prod",
"repo" : "[email protected]:keldaanCommunity/pokemonAutoChess.git",
"path" : "/home/deploy",
"post-deploy" : "npm install && npm run build"
},
vultr : {
"user" : "deploy",
"host" : ["192.248.155.174"],
"ref" : "origin/prod",
"repo" : "[email protected]:keldaanCommunity/pokemonAutoChess.git",
"path" : "/home/deploy",
"post-deploy" : "npm install && npm run build"
}
}
}