forked from digital-stage/v1-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
32 lines (30 loc) · 924 Bytes
/
ecosystem.config.js
File metadata and controls
32 lines (30 loc) · 924 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
module.exports = {
apps: [{
name: "server",
script: "dist/index.js",
params: "",
// Options reference: https://pm2.keymetrics.io/docs/usage/application-declaration/
instances: 1,
autorestart: true,
watch: false,
env_production: {
"NODE_ENV": "production",
"ENV_PATH": "/home/node/.env",
},
max_memory_restart: '1G',
}],
deploy: {
production: {
user: 'node',
host: 'api.digital-stage.org',
ref: 'origin/master',
repo: "https://github.com/digital-stage/server.git",
path: '/node/server',
env: {
"NODE_ENV": "production",
"ENV_PATH": "/home/node/.env",
},
'post-deploy': 'npm install && npm run build && pm2 restart ecosystem.config.js --env production'
}
}
};