Skip to content

Local dev bootstrap#97

Merged
shaddi merged 2 commits into
mainfrom
local-dev-bootstrap
Jun 10, 2026
Merged

Local dev bootstrap#97
shaddi merged 2 commits into
mainfrom
local-dev-bootstrap

Conversation

@shaddi

@shaddi shaddi commented Jun 10, 2026

Copy link
Copy Markdown
Member

A few miscellaneous odds and ends for cleaning up the dev workflow and the maps for local dev.

shaddi added 2 commits June 9, 2026 20:53
Three issues kept a fresh `cp .env.example .env && make up && make seed`
from working out of the box:

- The frontend reads NEXT_PUBLIC_DEVELOP_BACKEND_URL (and the three
  NEXT_PUBLIC_DEVELOP_MAPTILE_* style URLs) but nothing set them in the
  container, so API calls went to "undefined". Pass them through in
  docker-compose with sensible dev defaults (http://localhost, i.e. via
  nginx; empty maptile URLs — the app boots without a MapTiler key) and
  document them in .env.example.
- The backend and celery worker could start before Postgres was ready;
  the entrypoint then crashed running alembic on first boot. Gate both
  on the db healthcheck (and redis startup) via depends_on conditions.
- `make seed` and `make grant-admin` ran scripts without PYTHONPATH=/app,
  so imports failed inside the container.
The map components pass the MapTiler style URL straight from env vars to
MapLibre; with no key configured the basemap silently rendered blank.
settings.js now exports a plain OSM raster style object as the fallback,
so the map renders out of the box in dev and demo environments. MapLibre
accepts either a style URL or a style object, so the map components are
unchanged.
@shaddi shaddi merged commit 7b5f736 into main Jun 10, 2026
3 checks passed
@shaddi shaddi deleted the local-dev-bootstrap branch June 13, 2026 02:14
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