forked from alemi/upub
ci: added tci script
This commit is contained in:
parent
b2079a2c91
commit
714d0372d2
1 changed files with 13 additions and 0 deletions
13
.tci
Executable file
13
.tci
Executable 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"
|
Loading…
Reference in a new issue