1
0
Fork 0
forked from alemi/upub

ci: added tci script

This commit is contained in:
əlemi 2024-03-20 07:55:49 +01:00
parent b2079a2c91
commit 714d0372d2
Signed by: alemi
GPG key ID: A4895B84D311642C

13
.tci Executable file
View file

@ -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"