diff options
author | Martin Ashby <martin@ashbysoft.com> | 2022-12-30 17:39:41 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2022-12-30 17:39:41 +0000 |
commit | fd330cb15d5247a467d086d9b227b56ab4bd2879 (patch) | |
tree | 6c781f51b2edfeeb26eb5a4a6c30a5d0ba8ba5c4 | |
parent | aebf70ed75dbbe1fbbf0f72f7d9f94f08aab0ed5 (diff) | |
download | mfashby.net-fd330cb15d5247a467d086d9b227b56ab4bd2879.tar.gz mfashby.net-fd330cb15d5247a467d086d9b227b56ab4bd2879.tar.bz2 mfashby.net-fd330cb15d5247a467d086d9b227b56ab4bd2879.tar.xz mfashby.net-fd330cb15d5247a467d086d9b227b56ab4bd2879.zip |
Rename refresh.sh -> deploy.sh
Add step to stop comments app before copying new binary
-rwxr-xr-x | deploy.sh (renamed from refresh.sh) | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2,8 +2,6 @@ set -e -git pull - # Copy static site hugo scp -r public/* root@rpi3:/var/www/mfashby.net/ @@ -11,6 +9,7 @@ scp -r public/* root@rpi3:/var/www/mfashby.net/ # build & install comments app pushd comments RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc" cargo build --target=aarch64-unknown-linux-gnu --release +ssh root@rpi3 -C systemctl stop comments scp target/aarch64-unknown-linux-gnu/release/comments root@rpi3:/usr/local/bin/comments scp comments.service root@rpi3:/etc/systemd/system/comments.service ssh root@rpi3 -C systemctl daemon-reload |