You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 interface0.0.0.0
and your local IP for your base_url as flags.Since interface
0.0.0.0
is mostly standard forserving
, 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.
The text was updated successfully, but these errors were encountered: