deploy.sh: the afrapay user can sudo now
This commit is contained in:
parent
8c435a130b
commit
d1d8d795c0
|
@ -1,6 +1,7 @@
|
|||
#!/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 afrapay.lan sudo systemctl stop afrapay-web
|
||||
|
||||
ssh afrapay@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
|
||||
ssh afrapay@afrapay.lan sudo systemctl restart afrapay-web
|
||||
|
|
Loading…
Reference in a new issue