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:
parent
28ba5f1b40
commit
a0d75d0807
1 changed files with 8 additions and 3 deletions
11
.tci
11
.tci
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue