Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: honor host and port config in service decorator #4776

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

frostming
Copy link
Contributor

@frostming frostming commented Jun 5, 2024

Signed-off-by: Frost Ming me@frostming.com

What does this PR address?

Make CLI honor host and port config in service decorator, so the priorities are:

  1. --port CLI option
  2. BENTOML_PORT env var
  3. service(http={"port": 3456})

Possible impact

The config in service decorator may take effect on Cloud if not specified explicitly by start option or env var. @bojiang please confirm this.

Signed-off-by: Frost Ming <me@frostming.com>
@frostming frostming requested a review from a team as a code owner June 5, 2024 01:24
@frostming frostming requested review from bojiang and removed request for a team June 5, 2024 01:24
Signed-off-by: Frost Ming <me@frostming.com>
@aarnphm aarnphm merged commit 8fc7497 into bentoml:main Jun 12, 2024
42 checks passed
@frostming frostming deleted the fix/host-port-config branch June 13, 2024 00:09
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.

3 participants