forked from knopkem/dicomweb-websocket-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
40 lines (38 loc) · 1.28 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
37
38
39
40
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require("path");
// eslint-disable-next-line @typescript-eslint/no-var-requires, import/no-extraneous-dependencies
require("dotenv-safe").config({ path: path.resolve("./.env") });
module.exports = {
apps: [{
name: "DicomWeb-Websocket-Bridge",
script: "./build/app.js",
instances: 2,
log_date_format: "YYYY-MM-DDTHH:mm:ssZ",
wait_ready: true,
exec_mode: "cluster",
env_development: {
NODE_ENV: "development"
},
env_production: {
NODE_ENV: "production"
}
}],
deploy: {
dev: {
user: "root",
host: "dev-pacs.vpop-pro.com",
ref: "origin/main",
repo: "[email protected]:wearemothership/dicomweb-websocket-bridge.git",
path: "/root/dev/dicomweb-websocket-bridge",
"post-deploy": "npm install && npm run build && pm2 reload ecosystem.config.js --env production --update-env"
},
production: {
user: "root",
host: "pacs.vpop-pro.com",
ref: "origin/main",
repo: "[email protected]:wearemothership/dicomweb-websocket-bridge.git",
path: "/root/dev/dicomweb-websocket-bridge",
"post-deploy": "npm install && npm run build && pm2 reload ecosystem.config.js --env production --update-env"
}
}
};