Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wp-now: Use localhost instead of 127.0.0.1 (#455)
See [this comment](WordPress/wordpress-playground#435 (comment)). ## What? This PR changes the URL that `wp-now` listens on from `127.0.0.1` to localhost. ## Why? When I run `wp-now start` in WSL (a Windows virtual environment), it listens on `127.0.0.1` (ipv4 address). However, when I access the URL on the host OS, it resolves `to::1` (ipv6 address), so I believe this is why the server is unreachable. ## Testing Instructions - run `nx preview wp-now start` - Confirm that the console displays the expected logs: `Server running at http://localhost:8881/` - Confirm that the WordPress site is displayed when accessing `http://localhost:8881/`. - Conform that WordPress Address and Site Address settings are `http://localhost:8881/`. - Confirm that all resources such as CSS and JS are also loaded at this URL and that no errors are output to the console.
- Loading branch information