diff --git a/components/backend/cmd/seed/README.md b/components/backend/cmd/seed/README.md index 3c0963a3..a8e8cd99 100644 --- a/components/backend/cmd/seed/README.md +++ b/components/backend/cmd/seed/README.md @@ -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 diff --git a/justfile b/justfile index da7b8444..d7e98d28 100644 --- a/justfile +++ b/justfile @@ -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