From 1ba6d82c0a5f4780e64ffd6531b7cd0adfd8e63e Mon Sep 17 00:00:00 2001 From: Reimar Date: Tue, 13 Aug 2024 10:12:18 +0200 Subject: [PATCH] Add database migrations to release script --- API/release.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/API/release.sh b/API/release.sh index 224d726..0ff7d45 100755 --- a/API/release.sh +++ b/API/release.sh @@ -1,5 +1,10 @@ #!/bin/sh + dotnet publish -r linux-arm64 -p:PublishSingleFile=true --self-contained false -rsync -vu bin/Release/net8.0/linux-arm64/publish/* reimar@reim.ar:/home/reimar/skantravels +dotnet ef migrations bundle --self-contained -r linux-arm64 --force + +rsync -va bin/Release/net8.0/linux-arm64/publish/* reimar@reim.ar:/home/reimar/skantravels +rsync -va efbundle reimar@reim.ar:/home/reimar/skantravels + ssh -t reimar@reim.ar "systemctl restart skantravels"