Can't view Laravel project in browser with Vagrant -
i trying vagrant/laravel setup going, there 1 problem: when run php artisan serve
on vagrant vm, , try view project on host machine browser, browser says can't connect/page isn't found.
here vagrantfile:
vagrant.configure("2") |config| config.vm.box = "hashicorp/precise32" config.vm.provision :shell, :path => "bootstrap.sh" config.vm.network "private_network", ip: "192.168.50.4" config.vm.provider :virtualbox |vb| vb.name = "dev_host" end end
after vagrant up
, cd laravel project folder , run php artisan serve
, runs on localhost:8000, go 192.168.50.4:8000 , not show up.
any comments appreciated!
you have bind php server specified ip (192.168.50.4), or interfaces (0.0.0.0). port forwarding uses implicit nat interface instead of loopback (localhost, 127.0.0.1) on vm.
Comments
Post a Comment