-
Notifications
You must be signed in to change notification settings - Fork 1
/
ecosystem.config.js
45 lines (43 loc) · 1.63 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
44
45
module.exports = {
/**
* PM2 Application Configuration
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
"apps" : [
{
"name" : "grail-master",
"script" : "./master.js",
"instances" : 1,
"exec_mode" : "fork",
"watch" : false,
"env" : { "NODE_ENV": "development" },
"env_production": { "NODE_ENV": "production" }
},
{
"name" : "grail-worker",
"script" : "./worker.js",
"instances" : 1,
"exec_mode" : "fork",
"watch" : false,
"env" : { "NODE_ENV": "development" },
"env_production": { "NODE_ENV": "production" }
}
],
/**
* PM2 Deployment Configuration
* http://http://pm2.keymetrics.io/docs/usage/deployment/
*/
"deploy": {
"production": {
"user" : "kurtbradd",
"host" : "130.113.103.46",
"ref" : "origin/master",
"repo" : "https://github.com/digitalmusiclab/grail_web_crawler",
"path" : "/home/kurtbradd/apps/grail_web_crawler",
"pre-setup" : "./deploy/pre-setup.sh",
"post-setup" : "",
"pre-deploy-local": "rsync -avz -e 'ssh -p 22' ./config/.env.production [email protected]:~/apps/grail_web_crawler/config/.env.production",
"post-deploy" : "npm install && pm2 startOrGracefulReload ecosystem.config.js --env production"
}
}
};