From 9023e249d5ec58037e1270d77c55452b26c9e7de Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Mon, 2 Oct 2023 23:20:26 +0200 Subject: [PATCH] Activate command to stop and start the service. --- deploy.nu | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy.nu b/deploy.nu index b8fb962..f97e6ce 100644 --- a/deploy.nu +++ b/deploy.nu @@ -27,9 +27,10 @@ def main [host: string, destination: string, ssh_key: path] { cargo zigbuild --target $target } - # invoke_ssh $"sudo systemctl stop ($app_name)" + invoke_ssh $"sudo systemctl stop ($app_name)" copy_ssh ./target/($target)/($build)/($app_name) $destination invoke_ssh $"chmod u+x ($destination)/($app_name)" - # invoke_ssh $"sudo systemctl start ($app_name)" + invoke_ssh $"sudo systemctl start ($app_name)" + print "Deployment finished" } \ No newline at end of file -- 2.45.2