-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
37 lines (35 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
module.exports = {
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
apps : [
// First application
{
name : 'web',
script : 'bin/www',
env: {
COMMON_VARIABLE: 'true'
},
env_production : {
NODE_ENV: 'production'
}
},
],
deploy : {
production : {
user : 'ec2-user',
host : '35.169.104.186',
ref : 'origin/master',
key : '~/.ssh/instance-key.pem',
repo : '[email protected]:waterloop/waterloop-website.git',
path : '/home/ec2-user/prod/waterloop-website',
"post-setup": "echo #######Post Setup#######",
"pre-deploy-local" : "#########Pre-Deploy-Local#############;pwd;cp -R ~/cred/secret/ ~/prod/waterloop-website/;ls ~/prod/waterloop-website/source/",
'post-deploy' : 'pwd;cp -R ~/cred/secret/ ~/prod/waterloop-website/source/;ls ~/prod/waterloop-website/source/;npm install && pm2 startOrRestart ecosystem.config.js production',
"env" : {
"NODE_ENV": "production"
}
}
}
};