a) Download Virtualbox and install it.
b) Download Vagrant and install it
c) (Optional) Download the latest (at this time) Homestead box. I keep this for multiple machines at home. WARNING - @ a 1GB file
d) Go to where you downloaded the box and add it. (Terminal command)
vagrant box add laravel/homestead hc-download
If you didn't download the box previously, then simply run and it will download automatically.
vagrant box add laravel/homestead
e) Create a folder where your Homestead VM will reside. I named mine simply VM/Homestead
g) Using git, clone Homestead & initialize it. Prepare to edit Homestead.yaml:
git clone https://github.com/laravel/homestead.git Homestead
h) create a SSH key
ssh-keygen -t rsa -C "you@homestead"
i) Now edit Homestead.yaml
- I changed the memory to 256
- folders section: map is your drive, to is the VM folder structure.
- sites is the same thing, just where your site project will be. In the example below testsite.local doc root is in /home/jason/Projects/Web/testsite.local/public
- map: /home/jason/Projects/Web
- map: testSite.local
j) add your site to the computer's host file and save it:
k) Go back to the VM/Homestead folder and start up the Virtual Machine:
l) try out your site in the browser:
m) When your done: