-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.json
37 lines (35 loc) · 913 Bytes
/
ecosystem.json
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
{
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
apps : [
// First application
{
name : "My App",
script : "index.js",
env: {
TEST_VAR: "Hello World"
},
env_production : {
NODE_ENV: "production"
}
}
],
/**
* Deployment section
* http://pm2.keymetrics.io/docs/usage/deployment/
*/
deploy : {
production : {
//update this section!
user : "root",
host : "0.0.0.0",
ref : "origin/master",
repo : "[email protected]:ahadik/repo",
path : "/root/app",
"pre-deploy-local" : "echo 'This is a local executed command'",
"post-deploy" : "npm install pm2 -g && npm install bower -g && npm install gulp -g && npm install --unsafe-perm && gulp build && pm2 startOrRestart ecosystem.json --env production"
}
}
}