blob: a6b1a8e622538fdb0a73d69ac73b657d2778454c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/env bash
WEB_DIR=./modern/build
SSH_CMD="ssh"
RSYNC_TO=etbsa.net:/opt/traccar/web/modern/
# Build
cd ./modern/
npm run build_release
# Deploy only if build was successful
if [ $? -eq 0 ]; then
cd ../
rsync --progress -e "$SSH_CMD" -rv0 --delete $WEB_DIR/ $RSYNC_TO
fi
|