Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion components/backend/cmd/seed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ just deploy::down && just deploy::up # keeps the data, reloads the policy

This applies to the documented order too
(`just clean::state && just start && just db::seed`), since the backend is up
before the seed runs.
before the seed runs. `just schema-change` restarts the stack after seeding, so
it needs no manual restart.

## Users

Expand Down
6 changes: 6 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ schema-change:
echo "==> Seeding database..."
just db::seed

# The backend loads its casbin policy once at startup, so it has not seen
# the roles the seed just wrote. See cmd/seed/README.md.
echo "==> Restarting services so the backend loads the seeded policy..."
just deploy::down
just deploy::up

echo "==> Done! Attaching to TUI..."
just deploy::attach

Expand Down
Loading