Commit 73122f4
authored
wp-now: Use localhost instead of 127.0.0.1 (#455)
See [this
comment](#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.1 parent 01357b9 commit 73122f4
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments