add deploy script
This commit is contained in:
14
deploy.sh
Executable file
14
deploy.sh
Executable 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"
|
||||||
|
|
Reference in New Issue
Block a user