Jukka
6 months ago
603
1
Servers

How to develop laravel + vue not in a localhost?

Posted 6 months ago by Jukka

I have virtual ubuntuserver with vmware that is 192.168... And It's running on top of windows 7 I also use it in the macbook and it works ok with all the php development

Now I'd like to learn to make vue with components, so live reload is needed. How do I accomplish this ?

When running npm run hot i get

「wds」: Project is running at http://0.0.0.0:8080/ 「wds」: webpack output is served from http://0.0.0.0:8080/ 「wds」: Content not from webpack is served from /var/www/financestats/public 「wds」: 404s will fallback to /index.html

and i can go to http://192.168.75.129:8080/ but it says cannot get /

from the apache it works with my custom hosts-setting : http://mysite.myhost.com/ and that serves the public folder, but i guess it cannot have live reload trough apache for vue components from there ?

Please sign in or create an account to participate in this conversation.