06.10.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 66<br />

Installing Homestead<br />

You may install Homestead by simply cloning the repository. Consider cloning the repository into<br />

a Homestead folder within your “home” directory, as the Homestead box will serve as the host to all<br />

of your Laravel projects:<br />

1 cd ~<br />

2<br />

3 git clone https://github.com/<strong>laravel</strong>/homestead.git Homestead<br />

Once you have cloned the Homestead repository, run the bash init.sh command from the<br />

Homestead directory to create the Homestead.yaml configuration file. The Homestead.yaml file will<br />

be placed in the ∼/.homestead hidden directory:<br />

1 bash init.sh<br />

Configuring Homestead<br />

Setting Your Provider<br />

The provider key in your ∼/.homestead/Homestead.yaml file indicates which Vagrant provider<br />

should be used: virtualbox, vmware_fusion, or vmware_workstation. You may set this to the<br />

provider you prefer:<br />

1 provider: virtualbox<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:

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

Saved successfully!

Ooh no, something went wrong!