-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
ecosystem.config.cjs
43 lines (42 loc) · 925 Bytes
/
ecosystem.config.cjs
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
41
42
43
module.exports = {
apps : [{
name: 'DexPairs_Cron',
script: 'cron.js',
exp_backoff_restart_delay: 100,
env: {
NODE_ENV: 'development',
},
env_production: {
NODE_ENV: 'production',
PORT: 3003,
}
}, {
name: 'DexPairs_Front',
script: 'front.js',
exp_backoff_restart_delay: 100,
instances: 1,
exec_mode: 'cluster',
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production',
PORT: 3001,
}
}],
deploy : {
production : {
user : 'dexpairs',
host : '185.212.226.82',
ref : 'origin/main',
repo : 'git@github.com:dorianbayart/DexPairs.git',
path : '/home/dexpairs/prod',
'pre-deploy-local': '',
'post-deploy': 'npm install && npm run stop || true && pm2 startOrReload ecosystem.config.cjs --env production --update-env && pm2 save',
'pre-setup': 'pm2 install pm2-logrotate',
env_production: {
NODE_ENV: 'production'
}
}
}
}