Seravo / wordpress

The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment
https://seravo.com
GNU General Public License v3.0
104 stars 53 forks source link

Development TLD's and hosts issues with macOS #213

Open kosminen opened 1 year ago

kosminen commented 1 year ago

Well, let's begin with my steps, after some years of hiatus developing sites with the Seravo image :)

So, after confusing myself with a sparse documentation and googling some GitHub issues regarding seravo/wordpress image, I'm not sure if the Docker image should advertise the foo.local type address, or am I supposed to add the 127.0.0.1 foo.local and ::1 foo.local entries to /etc/hosts (after which the dev site opens).

But then there's the (I guess now age-old) Bonjour/mDNS thing with .local domains in macOS, which sometimes does weird things and is slow. Is/should there a way to easily use another domain with the Docker setup? Just quickly looking the bootstrap scripts in the Wordpress image, it just takes the SITE variable and adds .local to it.

But also regarding the address advertising, I guess it would be fairly easy to do some dnsmasq and /etc/resolver/ magic to just point all requests to a .test (or whatever that's not .local or otherwise reserved) TLD to localhost, which would then make developer's life easier when doing multiple sites.

Thoughts? Also, a bit of a rush just now, so sorry for maybe incomplete data but I'll be happy to discuss further :)