Add deploy script

This commit is contained in:
Laura Hausmann 2023-05-18 21:56:45 +02:00
parent 2f90af21ba
commit 4c928fcd5b
Signed by: zotan
GPG key ID: D044E84C5BE01605

5
AfRApay.Web/deploy.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
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