This commit is contained in:
parent
d925573629
commit
4f611b9544
3 changed files with 47 additions and 3 deletions
4
Taskfile
4
Taskfile
|
|
@ -35,8 +35,8 @@ deploy_to_server() {
|
|||
where="$1"
|
||||
_cargo build --release
|
||||
rsync -v -essh ./target/release/mascarpone "$where:~" \
|
||||
&& rsync -rav -essh ./hashed_static "$where:~/static" \
|
||||
&& ssh -t "$where" "sudo mv -f mascarpone /usr/bin/ && sudo rm -rf /var/local/mascarpone/static && sudo mv -f static /var/local/mascarpone/ && sudo systemctl restart mascarpone"
|
||||
&& rsync -rav -essh ./hashed_static "$where:~/" \
|
||||
&& ssh -t "$where" "sudo mv -f mascarpone /usr/bin/ && sudo rm -rf /var/local/mascarpone/hashed_static && sudo mv -f hashed_static /var/local/mascarpone/ && sudo systemctl restart mascarpone"
|
||||
}
|
||||
|
||||
dev() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue