create-schematic-gen-site/build-and-deploy.sh

11 lines
330 B
Bash
Executable File

#!/usr/bin/env bash
dub clean
dub build --build=release
echo "Stopping CSGS service."
ssh -f root@andrewlalis.com 'systemctl stop csgs'
echo "Uploading new binary."
scp create-schematic-gen-site root@andrewlalis.com:/opt/create-schematic-gen-site/
echo "Starting CSGS service."
ssh -f root@andrewlalis.com 'systemctl start csgs'