gist/app/deploy

15 lines
297 B
Plaintext
Raw Normal View History

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