X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=deploy.nu;h=f97e6ce5f3c1957871e5463fcb4455148d70b6f3;hb=8ff916896124ea900ea2c6b66c87e6cc72ffe1eb;hp=b8fb962b4cb865276fe5b922c4ef49bb512bda76;hpb=507c694cf6672969f9003324a4783c91bf31f764;p=stakingWatchdog.git 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