I’m using Laravel Homestead 2.0 for my VM and am trying to serve my sites on the default IP address in the YAML file 192.168.10.10
我的/etc/hosts文件如下所示:
# Homestead
192.168.10.10 beta.dev
192.168.10.10 deploy.dev
我的家园.yaml文件如下所示:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Projects
to: /home/vagrant/Projects
sites:
- map: beta.dev
to: /home/vagrant/Projects/emorybeta/public
- map: deploy.dev
to: /home/vagrant/Projects/deploy/public
...
The sites come up when I link my domains to 127.0.0.1 but I have to append port 8000 onto the end of the URL (which isn’t a big deal, I just want to get the specified IP address to work).
Does anyone know why I cannot connect to server when my domains are pointed to 192.168.10.10?
UPDATE:
当我准备部署时.dev显示正确的IP地址,但我的浏览器仍然无法连接到服务器.我想这可能与优胜美地的DNS问题有关.