Complete Homestead documentation https://laravel.com/docs/5.8/homestead.
- Install Homestead in the project directory
> composer install
- Fix folder mapping in
Homestead.yaml
to point to your project folderfolders: - map:
- Install and start the box
> vagrant up
> brew update
> brew install php
> brew install composer
-
VirtualBox (https://www.virtualbox.org/wiki/Downloads)
-
Vagrant (https://www.vagrantup.com/downloads.html)
// Reload vagrant box with updated Homestead.yaml configuration > vagrant reload --provision
NOTE:
Homestead.yaml
contains mappings to all sites. It's done so that one VM can be shared among several projects.
Virtualenvwrapper is pre-installed. Excerpt from /usr/local/bin/virtualenvwrapper.sh
:
# 5. Run: workon
# 6. A list of environments, empty, is printed.
# 7. Run: mkvirtualenv temp
# 8. Run: workon
# 9. This time, the "temp" environment is included.
# 10. Run: workon temp
# 11. The virtual environment is activated.
Getting Vagrant 2.2.6 working with VirtualBox 6.1 GA - link