blob: 1e046296303d31ae4ec8b5c6d3b95ba166362d5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
all: build deploy
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/ 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 \
rsync --delete --exclude=secrets.php --exclude=json -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/; \
fi
clean:
cd gospeladlershof.de && make clean
|