forked from alemi/upub
ci: don't rebuild db every time
This commit is contained in:
parent
71acddb766
commit
b84a682ed4
1 changed files with 2 additions and 7 deletions
9
.tci
9
.tci
|
@ -6,13 +6,8 @@ echo "stopping service"
|
||||||
systemctl --user stop upub
|
systemctl --user stop upub
|
||||||
echo "installing new binary"
|
echo "installing new binary"
|
||||||
cp ./target/release/upub /opt/bin/upub
|
cp ./target/release/upub /opt/bin/upub
|
||||||
echo "rebuilding database"
|
echo "migrating database"
|
||||||
DB="/srv/tci/upub.db"
|
/opt/bin/upub --db "sqlite:///srv/tci/upub.db" --domain https://feditest.alemi.dev migrate
|
||||||
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