From 714d0372d27291049634215074522b3a079d2063 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 20 Mar 2024 07:55:49 +0100 Subject: [PATCH] ci: added tci script --- .tci | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 .tci diff --git a/.tci b/.tci new file mode 100755 index 00000000..3f9b64a5 --- /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"