-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.json
26 lines (26 loc) · 1.32 KB
/
deploy.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
{
"deploy": {
"test": {
"user": "donut",
"host": "5.196.206.62",
"ref": "origin/master",
"repo": "git@github.com:dbrugne/donut.git",
"path": "/home/donut/app",
"post-deploy": "npm set progress=false && npm update && grunt pm2 --deployEnvironment test && grunt build && pm2 startOrRestart ecosystem.json --env test && sleep 1 && pm2 stop all && sleep 1 && pm2 restart master && pm2 restart history-server-1 && pm2 restart chat-server-1 && pm2 restart chat-server-2 && sleep 1 && pm2 restart connector-server-1 && pm2 restart connector-server-2 && pm2 restart web",
"env": {
"NODE_ENV": "test"
}
},
"production": {
"user": "donut",
"host": "5.196.206.61",
"ref": "origin/production",
"repo": "git@github.com:dbrugne/donut.git",
"path": "/home/donut/app",
"post-deploy": "npm set progress=false && npm update & grunt pm2 --deployEnvironment production && grunt build --uglify true && pm2 startOrRestart ecosystem.json --env production && sleep 1 && pm2 stop all && sleep 1 && pm2 restart master && pm2 restart history-server-1 && pm2 restart chat-server-1 && pm2 restart chat-server-2 && sleep 1 && pm2 restart connector-server-1 && pm2 restart connector-server-2 && pm2 restart web",
"env": {
"NODE_ENV": "production"
}
}
}
}