【发布时间】:2018-12-17 10:26:47
【问题描述】:
我在 docker 中使用 vue-cli,必须将服务绑定到 LAN IP 或 0.0.0.0 才能“本地”访问它们。
我期待--host 0.0.0.0,但那不存在。
$ vue ui
???? Starting GUI...
???? Ready on http://localhost:8000
$ vue ui -h
Usage: ui [options]
start and open the vue-cli ui
Options:
-p, --port <port> Port used for the UI server (by default search for awailable port)
-D, --dev Run in dev mode
--quiet Don't output starting messages
--headless Don't open browser on start and output port
-h, --help output usage information
【问题讨论】:
标签: vue-cli