-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
52 lines (52 loc) · 1.37 KB
/
ecosystem.config.js
File metadata and controls
52 lines (52 loc) · 1.37 KB
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
44
45
46
47
48
49
50
51
52
module.exports = {
apps : [{
name: 'demex-insights',
script: './node_modules/.bin/fastify',
args: 'start -l info app.js',
instances: '4',
exec_mode: 'cluster',
append_env_to_name: true,
env: {
NODE_ENV: 'development',
PORT: 3000,
},
env_staging: {
NODE_ENV: 'production',
PORT: 30310,
FASTIFY_ADDRESS: '0.0.0.0',
DATABASE_URL: process.env.DATABASE_URL || 'invalid DATABASE_URL',
CARBON_ENV: 'testnet',
},
env_production: {
NODE_ENV: 'production',
PORT: 30300,
FASTIFY_ADDRESS: '0.0.0.0',
DATABASE_URL: process.env.DATABASE_URL || 'invalid DATABASE_URL',
BECH32_PREFIX: 'swth',
CARBON_ENV: 'mainnet',
},
watch: false,
autorestart: true,
time: true,
}],
deploy : {
staging : {
user : 'ubuntu',
host : '203.118.10.75',
port : '30000',
ref : 'origin/master',
repo : 'git@github.com:Switcheo/demex-insights.git',
path : '/home/ubuntu/demex-insights-staging',
'post-deploy' : './scripts/post-deploy.sh staging',
},
production : {
user : 'ubuntu',
host : '203.118.10.75',
port : '30000',
ref : 'origin/master',
repo : 'git@github.com:Switcheo/demex-insights.git',
path : '/home/ubuntu/demex-insights',
'post-deploy' : './scripts/post-deploy.sh production',
}
}
};