homestead.app去了谷歌

时间:2015-07-18 22:44:16

标签: laravel vagrant homestead

我在OS X上,我设置了vagrant / homestead。这是我的homestead.yaml:

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Sites
      to: /home/vagrant/Sites

sites:
    - map: homestead.app
      to: /home/vagrant/Sites/deomens/public

databases:
    - homestead

variables:
    - key: APP_ENV
      value: local

这是我的/etc/hosts

192.168.10.10   homestead.app

但每当我输入homestead.app时,它都会立即将我发送给谷歌。我尝试了vagrant provision以及homestead destroy然后homestead up,但它仍然这样做。我试过重新启动我的机器,但仍然没有运气。感觉就像我的电脑不喜欢hosts文件。

... ...

1 个答案:

答案 0 :(得分:1)

没关系,我在前面添加了http://并且它有效。没有它虽然不起作用..

奇怪。