deploy.sh: don't hardcode username + IP

This commit is contained in:
embr 2023-05-19 21:44:59 +02:00
parent 4175bbca99
commit 8c435a130b

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -euxo pipefail
dotnet publish --self-contained -p:PublishSingleFile=true -p:DebugType=embedded -p:EnableCompressionInSingleFile=false -p:PublishReadyToRun=true -p:PublishTrimmed=false -p:DebuggerSupport=false -c Release -r linux-arm64
ssh zotan@172.23.42.125 sudo systemctl stop afrapay-web
scp -r ./bin/Release/net7.0/linux-arm64/publish afrapay@172.23.42.125:/opt/afrapay
ssh zotan@172.23.42.125 sudo systemctl restart afrapay-web
ssh afrapay.lan sudo systemctl stop afrapay-web
scp -r ./bin/Release/net7.0/linux-arm64/publish afrapay@afrapay.lan:/opt/afrapay
ssh afrapay.lan sudo systemctl restart afrapay-web