You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
Hi!
i'm currently testing vagrant-hostsupdater plugin, with this you don't need to manually update the your host file.
this is the code so far:
config.vm.hostname="vagrant-lamp"# Local Machine Hosts## If the Vagrant plugin hostsupdater (https://github.com/cogitatio/vagrant-hostsupdater) is# installed, the following will automatically configure your local machine's hosts file to# be aware of the domains specified below. Watch the provisioning script as you may need to# enter a password for Vagrant to access your hosts file.## By default, we'll include all the domains located under the data_bags/sites directory.#ifdefined?(VagrantPlugins::HostsUpdater)hosts=[]Dir.glob('data_bags/sites/*.json')do |json_file|
file=File.read(json_file)data=JSON.parse(file)hosts.push(data['host'])end# Pass the found host names to the hostsupdater plugin so it can perform magic.config.hostsupdater.aliases=hostsconfig.hostsupdater.remove_on_suspend=trueend
any thoughts?
The text was updated successfully, but these errors were encountered:
That looks awesome!
Actually I had it in my todo for more then year. But unfortunately, I'm pretty busy with my work lately, so haven't had the chance to do it myself.
Thus said, I would greatly appreciate the pull request :)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi!
i'm currently testing vagrant-hostsupdater plugin, with this you don't need to manually update the your host file.
this is the code so far:
any thoughts?
The text was updated successfully, but these errors were encountered: