Serving the project
The main Vuebnb project is now installed. Let's get the web server to serve it at the local development domain vuebnb.test.
In the Homestead configuration file, map vuebnb.test to the project's public folder.
~/Homestead/Homestead.yaml:
sites:
...
- map: vuebnb.test
to: /home/vagrant/vuebnb/publicLocal DNS entry
We also need to update our computer's host file so it understands the mapping between vuebnb.test, and the IP of the web server. The web server is in the Homestead box, which has the IP 192.168.10.10 by default.
To configure this on a Mac, open your host file, /etc/hosts, in a text editor and add this entry:
192.168.10.10 vuebnb.test
Note
The hosts file can normally be found at C:\Windows\System32\Drivers\etc\hosts on a Windows system.