Skip to content

Instantly share code, notes, and snippets.

@trevorgreenleaf
Last active March 19, 2016 03:34
Show Gist options
  • Save trevorgreenleaf/8f53c95937c91cd92881 to your computer and use it in GitHub Desktop.
Save trevorgreenleaf/8f53c95937c91cd92881 to your computer and use it in GitHub Desktop.
Laravel / Homestead add more sites
Trevor this is super easy. Yes I am talkign to you, I mean me. Wait you or me?
in terminal-> homestead edit
add the site
- map: cat.dev
to: /home/vagrant/Code/cat/public
save it. Then open up the etc/hosts file on your mac not on the server.
Edit the Ip to point to your url
192.168.10.10 cat.dev
then run in terminal->
vagrant global-status
vagrant provision
you will need to specify the id of the box that you got from global-status
When you start the next day run-> homestead up
Note:
If you screw up vagrant. find the ~/.vagrant.d directory and delete it.
@trevorgreenleaf
Copy link
Author

homestead halt
homestead up --provision

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment