forked from keldaanCommunity/pokemonAutoChess
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
29 lines (28 loc) · 820 Bytes
/
Copy pathecosystem.config.js
File metadata and controls
29 lines (28 loc) · 820 Bytes
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
// 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,
max_memory_restart: "1300M",
env_production: {
NODE_ENV: "production"
},
interpreter: "node@20.17.0",
}],
deploy: {
production: {
"user": "root",
"host": ["64.23.193.77", "143.198.101.153", "164.92.98.9", "161.35.234.200"],
"ref": "origin/prod",
"repo": "https://github.com/keldaanCommunity/pokemonAutoChess.git",
"path": "/home/deploy",
"post-deploy": "npm install && npm run assetpack && npm run build"
}
}
}