Files
bincio-wiki/scripts/sync-vps.sh
T

17 lines
391 B
Bash
Executable File

#!/usr/bin/env bash
# Pull web-edit commits from VPS, then push everything back.
# Usage: bash scripts/sync-vps.sh
set -e
cd "$(dirname "$0")/.."
echo "==> Pulling web-edit commits from VPS..."
git pull --rebase --autostash vps main
echo "==> Pushing site submodule to VPS..."
(cd site && git push vps main)
echo "==> Pushing container repo to VPS..."
git push vps main
echo "==> Done."