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
32 lines (31 loc) · 915 Bytes
/
Copy pathecosystem.config.js
File metadata and controls
32 lines (31 loc) · 915 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
// ecosystem.config.js
const os = require("os")
require("dotenv").config()
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@24.11.1"
}
],
deploy: {
production: {
user: "root",
host: process.env.DEPLOY_HOSTS?.split(",") || [],
ref: "origin/prod",
repo: "https://github.com/keldaanCommunity/pokemonAutoChess.git",
path: "/home/deploy",
"post-deploy":
"source ~/.nvm/nvm.sh && nvm install 24.11.1 && nvm use 24.11.1 && npm install && npm run build" //nvm use 20.12.0 && npm run assetpack && nvm use 22.14.0 &&
}
}
}