From 3b949e70bd33e5b868b6fe262d9a078a3e39198a Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Thu, 7 Aug 2025 09:37:59 +0200 Subject: [PATCH] add deploy script --- deploy.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..d502e77 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e + +cargo t + +cargo b -r --target x86_64-unknown-linux-musl +strip target/x86_64-unknown-linux-musl/release/website + +ssh root@aef25.digidow.eu "/usr/bin/systemctl stop aef" +scp target/x86_64-unknown-linux-musl/release/website root@aef25.digidow.eu:/srv/aef/aef +scp -r static/ root@aef25.digidow.eu:/srv/aef/ +ssh root@aef25.digidow.eu "systemctl start aef" +