Answer the question
In order to leave comments, you need to log in
Why doesn't vagrant run the page in the browser?
So given:
Mac mini, Mac OS X Sierra
Mac mini is connected to the Internet via wi-fi
The nginx virtual machine itself is taken from here https://github.com/splincode/basework/tree/master/...
With vagrant up, he writes here what
Answer the question
In order to leave comments, you need to log in
With other virtual machines like homestead or scotchbox everything works. Therefore, I close the issue with the current configuration.
How are you setting up the network? I understand correctly that you want to run vagrant on one device and view it from another? Try using public_network .
To check on my own PC, I usually configure the network like this:
required_plugins = ["vagrant-hostmanager", "vagrant-vbguest", "vagrant-cachier"]
required_plugins.each do |plugin|
if !Vagrant.has_plugin?(plugin) then
system "echo Not installed required plugin: #{plugin} ..."
system "vagrant plugin install #{plugin}"
end
end
Vagrant.configure("2") do |config|
#-------------------------------------
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.manage_guest = false
config.hostmanager.ignore_private_ip = false
config.hostmanager.include_offline = true
config.vm.hostname = 'test.me'
config.vm.network :private_network, ip: '192.168.1.22'
config.hostmanager.aliases = ['test.me', 'www.test.me']
#-------------------------------------
end
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question