From b84a682ed497e5c57a5b810d45015bcaaac903cd Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 26 Mar 2024 00:51:28 +0100 Subject: [PATCH] ci: don't rebuild db every time --- .tci | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.tci b/.tci index 141c3ff4..0202c55b 100755 --- a/.tci +++ b/.tci @@ -6,13 +6,8 @@ echo "stopping service" systemctl --user stop upub echo "installing new binary" cp ./target/release/upub /opt/bin/upub -echo "rebuilding database" -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 "migrating database" +/opt/bin/upub --db "sqlite:///srv/tci/upub.db" --domain https://feditest.alemi.dev migrate echo "restarting service" systemctl --user start upub echo "done"