Created
January 5, 2017 10:01
-
-
Save timovos/95432ecef02b27b421b3b0cb306e8cce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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