Compile frontend when deploying

This commit is contained in:
Greg Burri 2024-12-05 01:10:42 +01:00
parent 1c79cc890d
commit 45ac5276d4
2 changed files with 17 additions and 3 deletions

View file

@ -17,6 +17,11 @@ def main [host: string, destination: string, ssh_key: path] {
scp ...$args
}
cd frontend
source frontend/deploy.nu
main true
cd ..
cargo test
cargo build --target $target --release
invoke_ssh [sudo systemctl stop recipes]