local.demo.garden isn't working for me but localho...
# 🤖|ask-kapa
f
@microscopic-river-74022 local.demo.garden isn't working for me but localhost:port is. I just get NS_ERROR_UNKNOWN_HOST when trying to connect to the service using local.demo.garden. I'm running on macOS. logs show
deploy.frontend           → Ingress: http://<project>.local.demo.garden
. I'm using garden version 0.14.4
m
Please stand by @fresh-angle-76971 as I search the knowledge base. I normally take about 15 seconds or so. :wave:
---------------------- If you're getting an
NS_ERROR_UNKNOWN_HOST
when trying to access
<project>.local.demo.garden
but
localhost:port
works, it means your system isn't resolving the
*.local.demo.garden
domain to
127.0.0.1
as intended. By default, Garden's
*.local.demo.garden
domains should resolve to
127.0.0.1
via their DNS provider for convenience. However, some network setups or routers can interfere with this, especially on macOS. If DNS resolution fails, you need to manually add an entry to your
/etc/hosts
file. To fix this on macOS: 1. Open your terminal. 2. Edit your
/etc/hosts
file as an administrator:
Copy code
sudo vim /etc/hosts
(You can use any editor you prefer.) 3. Add a line like this (replace
<project>
with your actual project name):
Copy code
127.0.0.1 <project>.local.demo.garden
4. Save the file. Now, try accessing `<http://.local.demo.garden`> in your browser again. This should resolve the issue and direct traffic to your local service as expected. For more details, see the relevant documentation: [Update hostfile (only if needed)](). If you use multiple subdomains, you can add additional lines or use a wildcard if your system supports it (most
/etc/hosts
do not support wildcards, so you need to add each subdomain you use). Let me know if you need further help! ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
message has been deleted
f
for future reference: no idea why it isn't working, ended up modifying
/etc/hosts
2 Views