我正在尝试在我的Windows8 PC上安装家用机器,用于Laravel开发。我已经设法让机器启动并运行,我可以通过SSH进入它。 但以某种方式访问http://homestead.app不起作用。 我返回“此网页不可用”。
我将此行添加到我的主机文件中:
192.168.10.10 homestead.app
我的Gitbash确实在一定程度上说:“警告:连接超时。重试......”但是还是继续。
这就是我的Homestead.yaml的样子:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Code
to: /home/vagrant/Code
sites:
- map: homestead.app
to: /home/vagrant/Code/Laravel/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 93000
# to: 9300
# - send: 7777
# to: 777
# protocol: udp
答案 0 :(得分:0)
You can redirect your request to your host port and with your host machine you would be able to access you app.