-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.json
30 lines (30 loc) · 1.24 KB
/
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
{
"apps" : [{
"name" : "SANE App",
"script" : "app.js",
"env": {
"COMMON_VARIABLE": "true"
},
"env_production" : {
"NODE_ENV": "production"
}
}],
"deploy" : {
"production" : {
"user" : "user",
"host" : "0.0.0.0",
"ref" : "origin/master",
"repo" : "[email protected]:artificialio/sane.git",
"path" : "/home/user/apps/sane/production/",
"post-deploy" : "cd client && npm install && bower install && ember build --environment=production && cp -rf dist/* ../server/assets/ && cp -f dist/index.html ../server/views/index.ejs && rm -rf dist/ && rm -rf tmp/ && cd ../server && npm install && pm2 startOrRestart ../ecosystem.json --env production"
},
"development" : {
"user" : "user",
"host" : "0.0.0.0",
"ref" : "origin/master",
"repo" : "[email protected]:artificialio/sane.git",
"path" : "/home/user/apps/sane/development/",
"post-deploy" : "cd client && npm install && bower install && ember build --environment=development && cp -rf dist/* ../server/assets/ && cp -f dist/index.html ../server/views/index.ejs && rm -rf dist/ && rm -rf tmp/ && cd ../server && npm install && pm2 startOrRestart ../ecosystem.json --env development"
}
}
}