diff --git a/.tci b/.tci new file mode 100755 index 0000000..3f9b64a --- /dev/null +++ b/.tci @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "building release binary" +cargo build --release --all-features +echo "stopping service" +systemctl --user stop upub +echo "installing new binary" +cat ./target/release/upub > /opt/bin/upub +echo "applying migrations" +/opt/bin/upub --database /srv/tci/upub.db migrate +echo "restarting service" +systemctl --user start upub +echo "done"