-
Notifications
You must be signed in to change notification settings - Fork 43.5k
Fix site URL in links when running locally with docker compose
or DevContainer
#3029
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 site URL in links when running locally with docker compose
or DevContainer
#3029
Conversation
Removing the overrides makes jekyll default to the serve URL, rather than use the build URL
Thanks for this change! |
For some reason, this change doesn't allow me to load the site properly from localhost:4000 but, rather, I specifically have to go to 0.0.0.0:4000. Also, when I checked separately, this results in the static files generated in the _site directory to all have 0.0.0.0 in the links. |
The
When I manually switch For context, when testing this PR, I tried removing the When you say
do you mean that you were able to previously? Because in my experience the previous configuration was also serving to |
Thank you for the prompt response. Yes, I do understand but before the |
@msk-nightly I think it would help if you could point to a specific commit that worked like you expected. Because this PR did not introduce the I didn't test the docker integration prior to ef8e08b (the version that I modified), so I can't comment on whether or not serving at |
Thank you for your prompt response. I understand. You are correct in mentioning that this PR did not introduce the |
@msk-nightly The commit you point to IS the commit introduced by the PR... The PR added two commits, 6f5947f with the changes, and d4e74ea which is just a merge commit.
Tthe PR fixed an issue that WAS there before (detailed in #3028), so things were apparently not working fine for all configurations... If you want to investigate this further, I'd suggest you open a new issue describing more clearly the issue you're experiencing (what styling is not loading?) and provide details about your setup (e.g. docker, jekyll & ruby versions). Maybe then other people will be able to help. As things stand, I can't replicate your issues with up-to-date docker and jekyll... |
My apologies. It seems you're right. The command was introduced to the |
…-serve-url Fix site URL in links when running locally with `docker compose` or DevContainer
Fixes #3028.