chriszarate / docker-compose-wordpress

An example Docker Compose setup for WordPress plugin or theme development.
162 stars 54 forks source link

127.0.0.1 localhost project.dev #1

Closed MikeiLL closed 7 years ago

MikeiLL commented 7 years ago

For me it seemed that when I added:

127.0.0.1 localhost project.dev

to the OSX /etc/hosts file I got an nginx error. Didn't check the nginx logs, but updating the hosts entry to:

127.0.0.1  project.dev

It served properly.

chriszarate commented 7 years ago

If you were getting an Nginx error, then project.dev was resolving. Most likely the container wasn't ready to respond, perhaps because you had just started docker-compose (it takes about 15-30 seconds to be ready). I would restore localhost as you will probably want to resolve localhost at some point.

MikeiLL commented 7 years ago

Yes. Confirmed that does work as docs suggest.