Vagrant 流浪者/etc/hosts

Vagrant 流浪者/etc/hosts,vagrant,hosts,Vagrant,Hosts,我一直在修改我的/etc/hosts文件,以便将实时URL重定向到我的本地流浪者邮箱,直到最近,这个邮箱工作正常 我的主机文件中有类似的内容 example.be 10.11.10.12 我需要这样做,因为我正在使用链接到live域的第三方javascript SDK 我认为这是配置文件中最重要的内容: Vagrant.configure(2) do |config| # Every Vagrant development environment requires a box

我一直在修改我的/etc/hosts文件,以便将实时URL重定向到我的本地流浪者邮箱,直到最近,这个邮箱工作正常

我的主机文件中有类似的内容

example.be        10.11.10.12
我需要这样做,因为我正在使用链接到live域的第三方javascript SDK

我认为这是配置文件中最重要的内容:

Vagrant.configure(2) do |config|
  # Every Vagrant development environment requires a box. You can search for
  # boxes at https://atlas.hashicorp.com/search.
  config.vm.box = "bento/debian-7.8"

  config.vm.network "forwarded_port", guest: 80, host: 3001
  config.vm.network "private_network", ip: "10.11.10.12"

  config.ssh.forward_agent = true

  config.vm.synced_folder ".", "/vagrant", type: "nfs" # NFS because VirtualBox shared VM is too slow

  config.vm.provider "virtualbox" do |vb|
    # This all might be a bit excessive, but it'll run ;)
    vb.memory = 2048
    vb.cpus = 4

    # The internet says these changes improve VM performance
    vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
    vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
    vb.customize ["modifyvm", :id, "--ioapic", "on"]
  end
end
我发现了类似的问题,但没有一个能完全回答我的问题。问题是,它以前起作用,现在不起作用,这对我来说是最困难的部分


仅供参考:我正在使用OS X Yosemite 10.10.5

好吧,我现在觉得自己很愚蠢,似乎我只需要在我的主机文件中扭转局面

因此,我应该:

10.11.10.12        example.be
但奇怪的是,它以前起过作用


不管怎样,回去工作吧。往前走,这里没什么可看的。

好吧,我现在觉得自己很愚蠢,似乎我只需要在我的主机文件中扭转局面

因此,我应该:

10.11.10.12        example.be
但奇怪的是,它以前起过作用

不管怎样,回去工作吧。往前走,这里没什么可看的