Story: Fix site preview port to env port range
Table of Contents
This page documents a story in Sprint 20. It captures the goal, current status, acceptance criteria, and the tasks that compose it.
Goal
The site preview port (ORES_SITE_PORT) is currently generated as 8000+suffix (8001, 8002…), putting it outside the environment's designated port range. Each environment should have a fixed site port derived from its base port (51004 for local1, 52004 for local2, etc.) so all service ports are predictable and within range.
Status
| Field | Value |
|---|---|
| State | DONE |
| Parent sprint | Sprint 20 |
| Now | Nothing. |
| Waiting on | Nothing. |
| Next | Nothing. |
| Last touched | 2026-06-11 |
Acceptance
- ORES_SITE_PORT in every env is base_port+4 (51004, 52004, 53004, 54004, 50004 for remote). serve-site.sh reads ORES_SITE_PORT from .env as already implemented. compass env init re-run produces the correct port.
Tasks
| Task | State | Start | End | Description |
|---|---|---|---|---|
| Fix ORES_SITE_PORT to use env base port | DONE | 2026-06-11 | 2026-06-11 | Change env_init.py to derive ORES_SITE_PORT from base_port+4 instead of 8000+suffix. |