Skip to content

Commit 267e548

Browse files
Add mise restart task for vibora-dev service
Runs drizzle-kit push to sync schema, then restarts the systemd service.
1 parent 66cd001 commit 267e548

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

mise.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,3 +275,18 @@ else
275275
fi
276276
rm -f "$PID_FILE"
277277
"""
278+
279+
[tasks.restart]
280+
description = "Restart vibora-dev systemd service with migrations"
281+
run = """
282+
set -e
283+
284+
echo "Syncing database schema..." >&2
285+
bun run drizzle-kit push
286+
287+
echo "Restarting vibora-dev..." >&2
288+
systemctl --user restart vibora-dev
289+
290+
echo "Done. Checking status..." >&2
291+
systemctl --user status vibora-dev --no-pager
292+
"""

0 commit comments

Comments
 (0)