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 the startup message to use the configured http.options host, don't assume localhost #8078

Merged
merged 4 commits into from
Nov 8, 2022

Conversation

u-ishii
Copy link
Contributor

@u-ishii u-ishii commented Nov 8, 2022

Log the configured host instead of localhost when starting Keystone.

I checked that the log has changed by sandbox.

This PR is related to #7852.

I searched all codes that uses localhost, and it looks like there is no other code that needs fixing.
They were mostly example READMEs and test codes.
Also, #7852 reported that the Admin UI was broken, but now it seems to work.
Please let me know if I have overlooked anything.

@changeset-bot
Copy link

changeset-bot bot commented Nov 8, 2022

🦋 Changeset detected

Latest commit: 0934e05

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@keystone-6/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 8, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
keystone-next-docs ✅ Ready (Inspect) Visit Preview Nov 8, 2022 at 11:02PM (UTC)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 8, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0934e05:

Sandbox Source
@keystone-6/sandbox Configuration

@vercel vercel bot temporarily deployed to Preview November 8, 2022 06:55 Inactive
@u-ishii
Copy link
Contributor Author

u-ishii commented Nov 8, 2022

I noticed that the behavior is incorrect when not configured.

I mark this PR as a draft until I finish fixing it.

@u-ishii u-ishii marked this pull request as draft November 8, 2022 07:09
@vercel vercel bot temporarily deployed to Preview November 8, 2022 07:21 Inactive
@u-ishii
Copy link
Contributor Author

u-ishii commented Nov 8, 2022

Made it work correctly even if host is not configured.

@u-ishii u-ishii marked this pull request as ready for review November 8, 2022 07:28
Copy link
Member

@dcousens dcousens left a comment

Choose a reason for hiding this comment

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

Thanks @u-ishii! Nice pull request

@vercel vercel bot temporarily deployed to Preview November 8, 2022 23:02 Inactive
@dcousens dcousens changed the title Log configured host Fix the startup message to use the configured http.options host, don't instead of assuming localhost Nov 8, 2022
@dcousens dcousens changed the title Fix the startup message to use the configured http.options host, don't instead of assuming localhost Fix the startup message to use the configured http.options host, don't assume localhost Nov 8, 2022
@dcousens dcousens merged commit b3633c1 into keystonejs:main Nov 8, 2022
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.

2 participants