Replies: 1 comment
-
After @mikaelpopowicz PR's support for loopback to Laravel Valet, this is much easier now. laravel/valet#1039 available as of version 2.14.0 Now just run |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Typically DNSmasq will resolve the .test domain to
127.0.0.1
. With docker, this is a problem for us, as in a container, this resolves to itself.To allow us to communicate effectively, we need to use an alternative IP. Porter has a command to set up the host to listen on
10.200.10.1
- but it does not set up all the rest of the system for this, and the command will need to be run each time the machine is bootedporter dns:set-host
.We will need to do a few things to work together with Valet in this situation.
10.200.10.1
in~/config/valet/dnsmasq.d/tld-test.conf
replace127.0.0.1
with10.200.10.1
127.0.0.1:
from all thelisten 127.0.0.1:
parts nginx.conf files in~/config/valet/Nginx
so nginx will listen on all IPs for the machine. (Alternatively swap to use the new IP instead)127.0.0.1
in/etc/resolver/test
to10.200.10.1
10.200.10.1
as the first DNS server in your network configurationvalet restart
Beta Was this translation helpful? Give feedback.
All reactions