diff --git a/deploy.nu b/deploy.nu index 3972ce0..01910aa 100644 --- a/deploy.nu +++ b/deploy.nu @@ -21,8 +21,11 @@ def main [host: string, destination: string, ssh_key: path] { trunk build --release cd .. + cd backend cargo test cargo build --target $target --release + cd .. + invoke_ssh [sudo systemctl stop recipes] copy_ssh ./target/($target)/release/recipes $destination invoke_ssh [rm -rf recipes/static]