1 #!/bin/sh 2 # deploy.sh — Push assets to VPS and restart. 3 # --delete removes stale files on the remote that no longer exist locally. 4 set -e 5 cd "$(dirname "$0")" 6 7 echo "syncing assets..." 8 rsync -avz --delete --exclude='*.go' app/smesh3/ orly:/home/mleku/sm3sh/ 9 10 echo "restarting orly..." 11 ssh orly "systemctl restart orly" 12 13 echo "deploy complete" 14