Skip to content

Document npm run db:up / db:down and db:studio#20

Open
QuentinFrc wants to merge 2 commits into
hunvreus:mainfrom
QuentinFrc:docs/dev-db-compose
Open

Document npm run db:up / db:down and db:studio#20
QuentinFrc wants to merge 2 commits into
hunvreus:mainfrom
QuentinFrc:docs/dev-db-compose

Conversation

@QuentinFrc

@QuentinFrc QuentinFrc commented Jul 13, 2026

Copy link
Copy Markdown

Documents the local database workflow introduced in hunvreus/pagescms#416:

  • Install locally — the PostgreSQL step becomes npm run db:up (Docker Compose, named volume, waits for readiness), and DATABASE_URL is no longer required in .env.local (it defaults to the local Docker database via the committed .env.development).
  • Database — new "Local database" section covering db:up/db:down and browsing the database with npm run db:studio (Drizzle Studio).
  • Environment variables — note that DATABASE_URL is required in production but defaults to the local Docker database in development (same pattern as the existing BASE_URL note).

Should land together with hunvreus/pagescms#416.

Matches hunvreus/pagescms#416: the local database now starts via
Docker Compose (npm run db:up), DATABASE_URL defaults to the local
Docker database through the committed .env.development, and Drizzle
Studio is available via npm run db:studio.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant