-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
39 lines (38 loc) · 1.08 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
module.exports = {
apps: [
{
script: 'server/index.js',
watch: true,
ignore_watch: [ 'node_modules' ],
env: {
NODE_ENV: 'development',
},
env_production: {
NODE_ENV: 'production',
},
},
],
deploy: {
development: {
user: 'gizmo',
host: '161.35.131.122',
ref: 'origin/dev',
repo: '[email protected]:mattbrannon/lets-make-a-gif.git',
path: '/var/www/lets-make-a-gif.com/',
ssh_options: 'IdentityFile=~/.ssh/mattbrannon',
'pre-deploy-local': '',
'post-deploy': 'yarn build && pm2 reload server/index.js --watch',
},
production: {
user: 'gizmo',
host: '161.35.131.122',
ref: 'origin/dev',
repo: '[email protected]:mattbrannon/lets-make-a-gif.git',
path: '/var/www/lets-make-a-gif.com/',
ssh_options: 'IdentityFile=~/.ssh/mattbrannon',
// 'post-deploy': 'yarn build && pm2 reload server/index.js --watch',
'post-deploy':
'yarn install && yarn build && pm2 reload ecosystem.config.js --env production && pm2 save',
},
},
};