1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00
GIST/app/deploy
2015-05-06 23:05:51 +02:00

15 lines
385 B
Bash
Executable File

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