PORT: align default to 4738 throughout stack #10
Loading…
Reference in a new issue
No description provided.
Delete branch "mailship-lcy-port-readme-says-default-3000-env-ts-thr-8fe"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mailship-lcy
Make PORT optional with a single documented default of 4738, matching what every infra file already uses. The README claimed the default was 3000 while env.ts threw if PORT was unset and .env.template, Dockerfile, and docker-compose all used 4738.
Changes
throwguard (PORT is not defined) and replaced it with aconsole.logwarning. The export now falls back to'4738'whenPORTis unset, consistent with howEVENT_VIEWER_URL,BRAND_NAME, andBRAND_ACCENTalready handle optional vars in the same file.3000to4738in the PORT row of the configuration table.No changes needed for
.env.template,Dockerfile, ordocker-compose.yml— they already specify4738.How to test
Start the server without setting
PORTin the environment: it should logPORT not set, defaulting to 4738and listen on port 4738. Start withPORT=3000to confirm the env override still works.