1
0
Fork 0
forked from deblan/gist
gist/app/deploy

15 lines
385 B
Plaintext
Raw Normal View History

2015-05-05 20:33:05 +02:00
#!/bin/sh
cd "$(dirname "$0")/.."
deploy_preprod() {
2015-05-06 23:05:51 +02:00
rsync -avzoK --delete -e ssh --exclude-from=app/config/rsync_exclude.txt * webgist@deblan.fr:/services/web/www/gist.deblan.org/
2015-05-05 20:33:05 +02:00
}
deploy_preprod_lan() {
2015-05-06 23:05:51 +02:00
rsync -avzoK --delete -e ssh --exclude-from=app/config/rsync_exclude.txt * webgist@hinata:/services/web/www/gist.deblan.org/
2015-05-05 20:33:05 +02:00
}
([ -n "$1" ] && deploy_$1) || deploy_preprod