zachery.lol/deploy.sh

11 lines
334 B
Bash
Executable file

#!/bin/bash
set -e
echo "=== Building ==="
cargo run -- build
echo "=== Stopping Service ==="
ssh docean "systemctl stop zachery-web"
echo "=== Copying to VPS ==="
tar -cf - -C web-build . | ssh docean "tar -xf - -C /home/deploy/web-build/"
echo "=== Starting Service ==="
ssh docean "systemctl start zachery-web"
echo "=== Done ==="