You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Production stores batch and scheduled map exports in **AWS S3** (`EXPORT_MAP_S3_BUCKET`, e.g. `s3://prism-wfp/batch-maps`). Local dev uses **RustFS** so the same code paths run without real AWS credentials for artifacts.
54
+
55
+
`docker-compose.develop.yml` sets this automatically for **`api`** and **`export_map_worker`**:
56
+
57
+
| Variable | Local value | Role |
58
+
|---|---|---|
59
+
|`EXPORT_MAP_S3_BUCKET`|`prism-dev`| Bucket created by `rustfs-init`|
60
+
|`AWS_ENDPOINT_URL`|`http://rustfs:9000`| Server-side S3 calls (worker, API inside Docker) |
61
+
|`AWS_PRESIGN_ENDPOINT_URL`|`http://localhost:9000`| Presigned download URLs the browser can reach |
These flows stay aligned with production when `EXPORT_MAP_S3_BUCKET` is set and `EXPORT_MAP_LOCAL_OUTPUT_DIR` is empty (the compose default):
66
+
67
+
1.**Write** — `export_map_worker`
68
+
2.**Dedupe** — `POST /export-map/jobs` and `scheduled_public_maps` cron
69
+
3.**Download** — `GET /export-map/jobs/{id}` and admin schedule download
70
+
71
+
The alternative dev mode, `EXPORT_MAP_LOCAL_OUTPUT_DIR`, writes `file://…` URIs to disk instead of S3 and skips the RustFS/prod-aligned path.
48
72
49
73
### 3. Run migrations and seed data
50
74
@@ -55,7 +79,7 @@ make db-migrate
55
79
make db-seed
56
80
```
57
81
58
-
`db-migrate` applies Alembic migrations (`upgrade head`). `db-seed` runs migrations first, then inserts sample dev data (Mozambique AA metadata, a `local_dev_user`, and example alert rows).
82
+
`db-migrate` applies Alembic migrations (`upgrade head`). `db-seed` runs migrations first, then inserts sample dev data (Mozambique AA metadata, a `local_dev_user`, example alert rows, and five `[Seed]` map export schedules for cron/download QA).
0 commit comments