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.
This commit is contained in:
parent
74ffce7b6d
commit
4175bbca99
|
@ -1,4 +1,5 @@
|
|||
#!/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
|
||||
|
|
Loading…
Reference in a new issue