DONE Compiled successfully in 2914ms 3:08:05 PM
App running at:
- Local: http://localhost:8080/
It seems you are running Vue CLI inside a container.
Access the dev server via https://my.public.url/
What is actually happening?
DONE Compiled successfully in 2914ms 3:08:05 PM
App running at:
- Local: http://localhost:8080/
It seems you are running Vue CLI inside a container.
Access the dev server via http://localhost:<your container's external mapped port>/
This is a minor one, really, but it got my goat enough to fix it. :) If you set devServer.public then serve already knows the public URL to display in order to access the dev server from within the container, and thus could display it rather than the localhost:mapped-port message it has currently.
Version
3.11.0
Reproduction link
https://github.com/BenjaminNolan/vue-cli-public-container-url
Environment info
Steps to reproduce
Set
devServer.public
invue.config.js
:Run
yarn serve
from within a container.What is expected?
What is actually happening?
This is a minor one, really, but it got my goat enough to fix it. :) If you set
devServer.public
then serve already knows the public URL to display in order to access the dev server from within the container, and thus could display it rather than the localhost:mapped-port message it has currently.A PR with a potential fix is impending from https://github.com/BenjaminNolan/vue-cli.