-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathecosystem.config.js
43 lines (41 loc) · 1.22 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
41
42
43
module.exports = {
apps : [{
name: 'jsbrain',
script: 'jsbrain_server.js',
// Options reference: https://pm2.io/doc/en/runtime/reference/ecosystem-file/
args: '',
cwd: 'jsbrain_server',
port: 877,
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
}
}],
deploy : {
curie: {
user : 'beeminder',
host : [{host: '45.33.72.137', port: '1912'}],
ssh_options: ['ForwardAgent=yes'],
ref : 'origin/master',
repo : '[email protected]:beeminder/road.git',
path : '/var/www/jsbrain',
"post-deploy" : 'ln -s ../shared/node_modules jsbrain_server/node_modules && cd jsbrain_server && npm install && pm2 reload jsbrain',
"post-setup" : 'mkdir ../shared/node_modules'
},
production: {
user : 'beeminder',
host : ['23.92.16.25', '23.239.11.250'],
ssh_options: ['ForwardAgent=yes'],
ref : 'origin/master',
repo : '[email protected]:beeminder/road.git',
path : '/var/www/jsbrain',
'post-deploy' : 'cd jsbrain_server && npm install && pm2 reload ecosystem.config.js --env production'
}
}
};