delphi.market/deploy.sh

11 lines
202 B
Bash

#!/usr/bin/env bash
set -e
rsync -avh public/ vps:/var/www/delphi --delete --dry-run
echo
read -p "Continue deploy? [yn] " yn
echo
[ "$yn" == "y" ] && rsync -avh public/ vps:/var/www/delphi --delete