observablehq / framework

A static site generator for data apps, dashboards, reports, and more. Observable Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis.
https://observablehq.com/framework/
ISC License
2.46k stars 117 forks source link

When the hostname can not be inferred, suggest the --hostname option #1536

Open Fil opened 2 months ago

Fil commented 2 months ago

ref. https://github.com/observablehq/framework/discussions/1535

I'm not sure how we arrive at this point, but we should definitely not print out http://undefined:3000 and instead print out a message suggesting to use an explicit --host.

mbostock commented 2 months ago

I can’t see how this is possible given that the --host argument has a default of "127.0.0.1".

mbostock commented 2 months ago

(Also, the argument is --host; hostname is the name of the internal option but that’s not part of the public API.)