projects
/
mumble_web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c7de2b2
)
Avoid systemd in user mode
master
author
Greg Burri
<greg.burri@gmail.com>
Sun, 23 Jun 2024 21:58:17 +0000
(23:58 +0200)
committer
Greg Burri
<greg.burri@gmail.com>
Sun, 23 Jun 2024 21:58:17 +0000
(23:58 +0200)
deploy.nu
patch
|
blob
|
history
diff --git
a/deploy.nu
b/deploy.nu
index
7589874
..
ae8f52f
100644
(file)
--- a/
deploy.nu
+++ b/
deploy.nu
@@
-18,12
+18,13
@@
def main [host: string, destination: string, ssh_key: path] {
copy_ssh "ice/" $destination
cargo build --target $target --release
copy_ssh "ice/" $destination
cargo build --target $target --release
- invoke_ssh [s
ystemctl --user
stop mumble_web]
+ invoke_ssh [s
udo systemctl
stop mumble_web]
copy_ssh ./target/($target)/release/mumble_web $destination
invoke_ssh [rm -rf $"($destination)/static"]
copy_ssh ./static/ $destination
copy_ssh ./target/($target)/release/mumble_web $destination
invoke_ssh [rm -rf $"($destination)/static"]
copy_ssh ./static/ $destination
- invoke_ssh [chmod u+x $"($destination)/mumble_web"]
- invoke_ssh [systemctl --user start mumble_web]
+ invoke_ssh [chmod gu+x $"($destination)/mumble_web"]
+ invoke_ssh [chgrp -R www-data $"($destination)/mumble_web"]
+ invoke_ssh [sudo systemctl start mumble_web]
print "Deployment finished"
}
print "Deployment finished"
}