aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdeploy.sh (renamed from refresh.sh)3
1 files changed, 1 insertions, 2 deletions
diff --git a/refresh.sh b/deploy.sh
index d94502d..d66afa0 100755
--- a/refresh.sh
+++ b/deploy.sh
@@ -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