Skip to content

feat(scripts): add develop.sh port flag#22961

Merged
ibetitsmike merged 3 commits intomainfrom
mike/develop-script-port
Mar 11, 2026
Merged

feat(scripts): add develop.sh port flag#22961
ibetitsmike merged 3 commits intomainfrom
mike/develop-script-port

Conversation

@ibetitsmike
Copy link
Collaborator

@ibetitsmike ibetitsmike commented Mar 11, 2026

Summary

  • add a --port flag to scripts/develop.sh so the API can run on a non-default port
  • make the script use the selected API port for access URL defaults, readiness checks, login, proxy wiring, and printed URLs
  • reject oversized --port values early and treat an existing dev frontend on port 8080 as a conflict when the requested API is not already running
  • pin the frontend dev server to port 8080 so inherited PORT environment variables do not move it to a different port

Testing

  • bash -n scripts/develop.sh
  • shellcheck -x scripts/develop.sh
  • bash scripts/develop.sh --port abc
  • bash scripts/develop.sh --port 8080
  • bash scripts/develop.sh --port 999999999999999999999
  • started ./scripts/develop.sh --port 3001 and verified:
    • http://127.0.0.1:3001/healthz
    • http://127.0.0.1:3001/api/v2/buildinfo
    • http://127.0.0.1:8080/healthz
    • http://127.0.0.1:8080/api/v2/buildinfo
  • simulated an existing dev frontend on 127.0.0.1:8080 and verified ./scripts/develop.sh --port 3001 exits with a conflict error

@ibetitsmike
Copy link
Collaborator Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f86341cc50

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ibetitsmike ibetitsmike force-pushed the mike/develop-script-port branch from f86341c to eab5600 Compare March 11, 2026 17:58
@ibetitsmike
Copy link
Collaborator Author

Addressed the oversized --port validation issue by rejecting oversized numeric inputs before arithmetic checks.

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eab560026f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ibetitsmike ibetitsmike force-pushed the mike/develop-script-port branch from eab5600 to b15c68c Compare March 11, 2026 18:08
@ibetitsmike
Copy link
Collaborator Author

Addressed the stale frontend preflight case so an existing Web UI on port 8080 is treated as a conflict when the requested API is not already running.

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ibetitsmike ibetitsmike merged commit 5119874 into main Mar 11, 2026
26 checks passed
@ibetitsmike ibetitsmike deleted the mike/develop-script-port branch March 11, 2026 19:11
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants