Serve: Document port changing in v7

Created on 29 May 2018  路  2Comments  路  Source: vercel/serve

With the introduction of https://github.com/zeit/serve/pull/374, we're finding that serving from a port besides 3000 is not configurable. We have our infrastructure setup to respect 5000 instead. This does not appear to be documented in npx serve@7 --help.

Previously with serve v6, we could say serve -p 5000 .

Most helpful comment

I think the fanciness of expanding support for "port" to "one or more interfaces/ports, UNIX domain sockets, or Windows named pipes" is my confusion. Thank you for teaching me this.

I'm assuming you'll find other new folks have complaints over time about ease of understanding. I know Zeit prides itself on zero-config and simple configuration, so the feedback that these arg changes weren't easy enough to figure out might be worth weight.

All 2 comments

@dawsbot Just run serve -l 5000, as described in serve --help. 馃槉

I think the fanciness of expanding support for "port" to "one or more interfaces/ports, UNIX domain sockets, or Windows named pipes" is my confusion. Thank you for teaching me this.

I'm assuming you'll find other new folks have complaints over time about ease of understanding. I know Zeit prides itself on zero-config and simple configuration, so the feedback that these arg changes weren't easy enough to figure out might be worth weight.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nikitamendelbaum picture nikitamendelbaum  路  6Comments

malinda1986 picture malinda1986  路  6Comments

ghost picture ghost  路  7Comments

Mugen87 picture Mugen87  路  3Comments

leo picture leo  路  5Comments