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