add deploy script

This commit is contained in:
2025-08-07 09:37:59 +02:00
parent be890bbba0
commit 3b949e70bd

14
deploy.sh Executable file
View File

@@ -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"