29.07.2016 Views

laravel-5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Laravel Homestead 50<br />

On Windows, you may install Git³⁹ and use the “Git Bash” shell included with Git to issue the<br />

command above. Alternatively, you may use PuTTY⁴⁰ and PuTTYgen⁴¹.<br />

Once you have created a SSH key, specify the public key’s path in the authorize property of your<br />

Homestead.yaml file.<br />

Configuring Shared Folders<br />

The folders property of the Homestead.yaml file lists all of the folders you wish to share with your<br />

Homestead environment. As files within these folders are changed, they will be kept in sync between<br />

your local machine and the Homestead environment. You may configure as many shared folders as<br />

necessary:<br />

.<br />

1 folders:<br />

2 - map: ~/Code<br />

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

To enable NFS⁴², just add a simple flag to your synced folder configuration:<br />

.<br />

1 folders:<br />

2 - map: ~/Code<br />

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

4 type: "nfs"<br />

Configuring Nginx Sites<br />

Not familiar with Nginx? No problem. The sites property allows you to easily map a “domain”<br />

to a folder on your Homestead environment. A sample site configuration is included in the<br />

Homestead.yaml file. Again, you may add as many sites to your Homestead environment as<br />

necessary. Homestead can serve as a convenient, virtualized environment for every Laravel project<br />

you are working on:<br />

³⁹http://git-scm.com/<br />

⁴⁰http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html<br />

⁴¹http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html<br />

⁴²http://docs.vagrantup.com/v2/synced-folders/nfs.html

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

Saved successfully!

Ooh no, something went wrong!