#!/usr/bin/env bash set -e git pull # Copy static site hugo scp -r public/* root@rpi3:/var/www/mfashby.net/ # build & install comments app pushd comments cargo build --release 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