diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -4,9 +4,10 @@ build: cd gospeladlershof.de && make build deploy: - @if [ -d /var/www/gospeladlershof.de ]; then\ - rsync --delete --exclude=secrets.php --exclude=json -avz intern/ /var/www/gospeladlershof.de/intern/ && \ - cd gospeladlershof.de && rsync --delete -avz public/ /var/www/gospeladlershof.de/gospeladlershof.de/; \ + if [ -d /var/www/gospeladlershof.de ]; then\ + ( rsync --delete --exclude=secrets.php --exclude=json -avz intern/ /var/www/gospeladlershof.de/intern/ 1>/dev/null 2>/dev/null && \ + cd gospeladlershof.de && rsync --delete -avz public/ /var/www/gospeladlershof.de/gospeladlershof.de/ 1>/dev/null 2>/dev/null && \ + echo "Success: Site gospeladlershof.de was built.") || ./error.sh; \ else \ echo rsync --delete -avze ssh intern/ online:/var/www/gospeladlershof.de/intern/ && \ cd gospeladlershof.de && rsync --delete --exclude=secrets.php --exclude=json -avze ssh public/ online:/var/www/gospeladlershof.de/gospeladlershof.de/; \ |
