Homestead notes cover image

Homestead notes

John Hoskins • July 16, 2019

Current thoughts about how to use Homestead for development.

  1. Set name variable, otherwise it defaults to homestead (or previously homestead-7)
  2. Set hostname variable, otherwise will default. Makes it easier to know what machine you are on
  3. Set ip variable so that you can then hard code them and be different than other ones, mDNS does not seem to work
  4. Leave database as homestead if you are using laravel
  5. Set folders variable to where you normally keep code
  6. Run most artisan commands on Mac while migrate needs to be on VM
  7. Start and stop using vagrant command to ensure DNS entries occur. If you use virtualbox console, setup will not occur correctly

Investigate 1. How to combine homestead or at least Homestead.yaml into other repo 2. Figure out the way to debug in homestead 3. Figure out the way to check for updated files and reload page

Changing default port 1. Default ports are in scripts/homestead.rb 2. Test way to remove defaults instead of add (default_ports = false)