/
run.deploy.apps.sh
19 lines (10 loc) · 1.01 KB
/
run.deploy.apps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# run.publish.bat with cmd.exe first
cat ../apps/bare/web.settings | sed "/debug/s/ .*/ false/" | sed "/port/s/ .*/ 5001/" > ../apps/web/web.bare.settings
cat ../apps/redis/web.settings | sed "/debug/s/ .*/ false/" | sed "/port/s/ .*/ 5002/" > ../apps/web/web.redis.settings
cat ../apps/rockwind/web.sqlite.settings | sed "/debug/s/ .*/ false/" | sed "/port/s/ .*/ 5003/" > ../apps/web/web.rockwind-sqlite.settings
cat ../apps/rockwind-vfs/web.sqlite.settings | sed "/debug/s/ .*/ false/" | sed "/port/s/ .*/ 5004/" > ../apps/web/web.rockwind-vfs-sqlite.settings
cat ../apps/plugins/web.settings | sed "/debug/s/ .*/ false/" | sed "/port/s/ .*/ 5005/" > ../apps/web/web.plugins.settings
cat ../apps/chat/web.release.settings | sed "/port/s/ .*/ 5006/" > ../apps/web/web.chat.settings
cat ../apps/redis-html/web.settings | sed "/debug/s/ .*/ false/" | sed "/port/s/ .*/ 5007/" > ../apps/web/web.redis-html.settings
rsync -avz -e 'ssh' ../apps deploy@web-app.io:/home/deploy
ssh deploy@web-app.io "sudo supervisorctl restart all"