2023-07-17 01:43:10 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
dub clean
|
2023-07-17 19:10:58 +00:00
|
|
|
rm -f create-schematic-gen-site
|
|
|
|
dub build
|
2023-07-17 01:59:58 +00:00
|
|
|
echo "Stopping CSGS service."
|
2023-07-17 14:47:10 +00:00
|
|
|
ssh -f root@andrewlalis.com 'systemctl stop csgs'
|
2023-07-17 01:59:58 +00:00
|
|
|
echo "Uploading new binary."
|
2023-07-17 14:47:10 +00:00
|
|
|
scp create-schematic-gen-site root@andrewlalis.com:/opt/create-schematic-gen-site/
|
2023-07-17 01:59:58 +00:00
|
|
|
echo "Starting CSGS service."
|
2023-07-17 14:47:10 +00:00
|
|
|
ssh -f root@andrewlalis.com 'systemctl start csgs'
|