1
0
Fork 0
forked from alemi/upub

ci: rebuild db again

im changing a lot of stuff its easier this way for now
This commit is contained in:
əlemi 2024-03-24 05:03:22 +01:00
parent 28ba5f1b40
commit a0d75d0807
Signed by: alemi
GPG key ID: A4895B84D311642C

11
.tci
View file

@ -5,9 +5,14 @@ cargo build --release --all-features
echo "stopping service" echo "stopping service"
systemctl --user stop upub systemctl --user stop upub
echo "installing new binary" echo "installing new binary"
cat ./target/release/upub > /opt/bin/upub cp ./target/release/upub /opt/bin/upub
echo "migrating database" echo "rebuilding database"
/opt/bin/upub --db sqlite:///srv/tci/upub.db --domain https://feditest.alemi.dev migrate DB="/srv/tci/upub.db"
cp "$DB" "$DB.bak"
rm "$DB"
touch "$DB"
/opt/bin/upub --db "sqlite://$DB" --domain https://feditest.alemi.dev migrate
/opt/bin/upub --db "sqlite://$DB" --domain https://feditest.alemi.dev faker
echo "restarting service" echo "restarting service"
systemctl --user start upub systemctl --user start upub
echo "done" echo "done"