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