projects
/
stakingWatchdog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Periodically print a "no error" status
[stakingWatchdog.git]
/
deploy.nu
diff --git
a/deploy.nu
b/deploy.nu
index
6945067
..
b8fb962
100644
(file)
--- a/
deploy.nu
+++ b/
deploy.nu
@@
-6,7
+6,7
@@
def main [host: string, destination: string, ssh_key: path] {
let scp_args = [-r -i $ssh_key]
let target = "x86_64-unknown-linux-gnu"
let app_name = "staking_watchdog"
let scp_args = [-r -i $ssh_key]
let target = "x86_64-unknown-linux-gnu"
let app_name = "staking_watchdog"
- let build = "
debug
" # "debug" or "release".
+ let build = "
release
" # "debug" or "release".
def invoke_ssh [command: string] {
let args = $ssh_args ++ $command
def invoke_ssh [command: string] {
let args = $ssh_args ++ $command
@@
-27,9
+27,9
@@
def main [host: string, destination: string, ssh_key: path] {
cargo zigbuild --target $target
}
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)"
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
print "Deployment finished"
}
\ No newline at end of file