Local Host Launch
When to use
Use this skill after domain/resource creation in Dream/local when the goal is to:
- access website/function endpoints by FQDN
- open resources in browser using hostnames
- validate host-based routing
Prerequisites
taubyte-dream-local-operationstaubyte-hosts-file-editor
Steps
- Confirm Dream and universe are running:
dream status universe default - Get FQDN(s) from domain resources:
tau query domain --name <domain-name> - Ensure hosts mappings exist for each FQDN:
- 127.0.0.1 <fqdn> - run taubyte-hosts-file-editor automatically (do not wait for user prompt)
- Ensure local deploy trigger is executed for Dream/local:
docker info dream inject push-all --universe default
- if docker info fails, stop and report Docker as runtime blocker
- Discover serving port:
- Usually from substrate: dream status substrate - If gateway is used in the universe, use its HTTP port from dream status universe <name>.
- Validate by hostname:
curl "http://<fqdn>:<port>/<path>" - If hosts edit is not available, fallback validation:
curl --resolve "<fqdn>:<port>:127.0.0.1" "http://<fqdn>:<port>/<path>" - For browser launch:
- open http://<fqdn>:<port>/<path>
Output contract
- Always return:
- exact website URL(s), - exact function URL(s), - one ready-to-run curl per endpoint, - whether hosts mapping was auto-applied or requires manual admin edit.
Notes
- Hosts mappings are OS-level and affect browser resolution.
curl --resolveis request-scoped and does not modify system DNS.- For HTTPS tests, prefer
--resolveso hostname/SNI stays correct. - Do not introduce
--generated-fqdn-prefixunless the user explicitly asks for a prefix. - If a function was created with
--template empty, ensureempty.gois implemented before launching local tests.