Skip to content

Instantly share code, notes, and snippets.

@timovos
Created January 5, 2017 10:01
Show Gist options
  • Save timovos/95432ecef02b27b421b3b0cb306e8cce to your computer and use it in GitHub Desktop.
Save timovos/95432ecef02b27b421b3b0cb306e8cce to your computer and use it in GitHub Desktop.
# Install the hostsupdater:
# vagrant plugin install vagrant-hostsupdater
# Place the following code into $HOMESTEAD/scripts/homestead.rb
# I placed it somewhere near end of the file
# Add the aliases to the host machine
if Vagrant.has_plugin?('vagrant-hostsupdater')
aliases = Array.new
settings["sites"].each do |site|
aliases.push(site["map"])
end
config.hostsupdater.aliases = aliases
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment