If you change the
sites
property after provisioning the Homestead box, you should re-run vagrant reload --provision
to update the Nginx configuration on the virtual machine.
The
hosts
file will redirect requests for your Homestead sites into your Homestead machine. On Mac and Linux, this file is located at /etc/hosts
. On Windows, it is located at C:\Windows\System32\drivers\etc\hosts
. The lines you add to this file will look like the following:192.168.10.10 homestead.test
Make sure the IP address listed is the one set in your
Homestead.yaml
file. Once you have added the domain to your hosts
file and launched the Vagrant box you will be able to access the site via your web browser:http://homestead.test
Launching The Vagrant Box
Once you have edited the
To destroy the machine, you may use the Homestead.yaml
to your liking, run the vagrant up
command from your Homestead directory. Vagrant will boot the virtual machine and automatically configure your shared folders and Nginx sites.vagrant destroy --force
command.
Comments
Post a Comment