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

Document serving over local network #1556

Closed
coastalwhite opened this issue Jul 21, 2021 · 0 comments · Fixed by #1557
Closed

Document serving over local network #1556

coastalwhite opened this issue Jul 21, 2021 · 0 comments · Fixed by #1557

Comments

@coastalwhite
Copy link
Contributor

Documentation issue

Summary

Currently, interface 127.0.0.1 is used. I can imagine this is on purpose, since it will not ask for network access on both Windows and Mac. This, however, leads to the problem of not being able to reach websites you are testing from other devices. For example, testing to see if the mobile view is correct and usable (outside your browser's DevTools). The way around this is using both interface 0.0.0.0 and your local IP for your base_url as flags.

Since interface 0.0.0.0 is mostly standard for serving, this confused me massively when I was first creating a website using Zola. Documenting this could save others in the future massive amounts of time and confusion.

Proposed solution

I would add a small sidenote to the CLI section on the serve command.

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 a pull request may close this issue.

1 participant