-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Labels
Description
Version
3.0.0-rc.2
Reproduction link
https://github.com/kissge/vue-cli-bug
Steps to reproduce
- Using
vue create
to start a project, on a remote machine (say, AWS EC2 instance) - Run
npm run serve
What is expected?
- Global IP address is shown in console
- HMR works
- App is accessible from the internet via http://mydomain.example.com/:8080
What is actually happening?
- Local IP address is shown in console
- HMR fails because sockjs tries to connect to local IP address
- App cannot be accessed from outside the network, so I have to use tricks like ssh port forwarding
I also tried tweaking webpack config from vue.config.js, with no luck.
peterblazejewicz, prettyEcho, alex700, ElSamhaa, trainoasis and 2 more