From eaef6dc77ea5c2abc2593d40264b69797b925f3e Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Tue, 1 Apr 2025 23:48:13 +0200 Subject: [PATCH] Build backend from its directory --- deploy.nu | 3 +++ 1 file changed, 3 insertions(+) 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] -- 2.49.0