This setup is no longer in use, but I decided to keep it here for posterity.
-
Clone the repository
-
You must have PHP and Composer installed.
-
Run
composer install. This will install all of the needed dependencies, as well as Homestead invendor/laravel/homesteadand symlink it tovendor/bin/homestead, which we will be aliasing to use Homestead from the project directory. -
Run
./homestead_initfrom the root of the project -
Edit
/etc/hostsand add your new domain. The IP address which you should add is by default192.168.10.10and the domain ishomestead.app. -
If you require a particular package installed on the VM, or if you simply need to do some extra provisioning, you can do it in
~/.homestead/after.sh -
Run
homestead up- If you get
"A VirtualBox machine with the name [**name**] already exists..."then open up VirtualBox and simply delete the machine with the same name. Alternatively you can just change the VM's name in theHomestead.yamlfile. - If bash/zsh gives you
"homestead up command not found"just source.shell_aliasesmanually.
- If you get
-
Your app should now be served at
homestead.appby default. You can also ssh into your homestead box by runninghomestead sshfrom the application root. -
You would have to
homestead sshinto the homestead VM,cdinto your project's root folder and run the following commands, in order to have the most recent DB version:php artisan db:rebuildphp artisan db:make-tests-dump
-
The only configuration file you need to care about is located at
~/.homestead/Homestead.yaml -
If you need to, you can read up further on configuring Homestead here: https://laravel.com/docs/master/homestead