12 lines
346 B
Bash
Executable File
12 lines
346 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
dub clean
|
|
rm -f create-schematic-gen-site
|
|
dub build
|
|
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'
|