29.07.2016 Views

laravel-5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Laravel Homestead 51<br />

.<br />

1 sites:<br />

2 - map: homestead.app<br />

3 to: /home/vagrant/Code/Laravel/public<br />

You can make any Homestead site use HHVM⁴³ by setting the hhvm option to true:<br />

.<br />

1 sites:<br />

2 - map: homestead.app<br />

3 to: /home/vagrant/Code/Laravel/public<br />

4 hhvm: true<br />

By default, each site will be accessible by HTTP via port 8000 and HTTPS via port 44300.<br />

The Hosts File<br />

Don’t forget to add the “domains” for your Nginx sites to the hosts file on your machine!<br />

The hosts file will redirect your requests for the local domains into your Homestead environment.<br />

On Mac and Linux, this file is located at /etc/hosts. On Windows, it is located at<br />

C:\Windows\System32\drivers\etc\hosts. The lines you add to this file will look like the following:<br />

.<br />

1 192.168.10.10 homestead.app<br />

Make sure the IP address listed is the one you set in your Homestead.yaml file. Once you have added<br />

the domain to your hosts file, you can access the site via your web browser!<br />

.<br />

1 http://homestead.app<br />

Launching The Vagrant Box<br />

Once you have edited the Homestead.yaml to your liking, run the vagrant up command from your<br />

Homestead directory. Vagrant will boot the virtual machine and automatically configure your shared<br />

folders and Nginx sites automatically.<br />

To destroy the machine, you may use the vagrant destroy --force command.<br />

⁴³http://hhvm.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!