diff options
-rwxr-xr-x | refresh.sh | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -6,12 +6,14 @@ git pull # Copy static site hugo -cp -r public/* /var/www/mfashby.net/ +scp -r public/* root@rpi3:/var/www/mfashby.net/ # build & install comments app pushd comments cargo build --release -install -m755 target/release/comments /usr/local/bin/comments -install -m755 comments.service /etc/systemd/system/comments.service +scp target/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 +ssh root@rpi3 -C systemctl restart comments popd -systemctl restart comments + |