2023-07-17 01:43:10 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
dub clean
|
|
|
|
dub build --build=release
|
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'
|