Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development TLD's and hosts issues with macOS #213

Open
kosminen opened this issue Nov 1, 2023 · 0 comments
Open

Development TLD's and hosts issues with macOS #213

kosminen opened this issue Nov 1, 2023 · 0 comments

Comments

@kosminen
Copy link

kosminen commented Nov 1, 2023

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

  • git clone'd a site from a Seravo install
  • Echoed the SITE=foo to a .env file
  • Tried running the docker environment with my M1 laptop (Ventura)

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant