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
36 lines (35 loc) · 931 Bytes
/
ecosystem.config.js
File metadata and controls
36 lines (35 loc) · 931 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
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: "node@22.14.0"
}
],
deploy: {
production: {
user: "root",
host: [
"143.198.101.153",
"164.92.98.9",
"161.35.234.200",
"64.23.236.25"
],
ref: "origin/prod",
repo: "https://github.com/keldaanCommunity/pokemonAutoChess.git",
path: "/home/deploy",
"post-deploy":
"source ~/.nvm/nvm.sh && nvm use 22.14.0 && npm install && npm run build" //nvm use 20.12.0 && npm run assetpack && nvm use 22.14.0 &&
}
}
}