Compare commits

...

3 commits

Author SHA1 Message Date
embr d1d8d795c0 deploy.sh: the afrapay user can sudo now 2023-05-19 22:10:26 +02:00
embr 8c435a130b deploy.sh: don't hardcode username + IP 2023-05-19 21:44:59 +02:00
embr 4175bbca99 deploy.sh: more portable interpreter + safety flags
This works on platforms that don't put bash there, and doesn't try to ship a broken build if it fails.
2023-05-19 21:44:09 +02:00

View file

@ -1,5 +1,7 @@
#!/bin/bash
#!/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@afrapay.lan sudo systemctl stop afrapay-web
scp -r ./bin/Release/net7.0/linux-arm64/publish afrapay@afrapay.lan:/opt/afrapay
ssh afrapay@afrapay.lan sudo systemctl restart afrapay-web