sitestat/deploy.sh

13 lines
436 B
Bash
Raw Permalink Normal View History

2023-10-05 16:35:52 +00:00
#!/usr/bin/env bash
# A personal script I use to deploy a sitestat instance to andrewlalis.com
2023-10-05 16:35:52 +00:00
echo "Building sitestat"
dub clean
dub build --build=release --compiler=/opt/ldc2/ldc2-1.33.0-linux-x86_64/bin/ldc2
echo "Deploying to andrewlalis.com"
2023-10-05 16:35:52 +00:00
ssh -f root@andrewlalis.com 'systemctl stop sitestat.service'
scp sitestat root@andrewlalis.com:/opt/sitestat/
ssh -f root@andrewlalis.com 'systemctl start sitestat.service'
echo "Done!"