15 lines
372 B
Bash
Executable File
15 lines
372 B
Bash
Executable File
#!/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"
|
|
|