我已经在我的机器上成功安装了Vagrant和Homestead。我可以进入流浪者的盒子里,当我ls -n
时,我可以看到我的项目。但是,当我运行`serve homestead.app / home / vagrant / Code / cstoss'时。我什么也没看到。
我能够通过http://127.0.0.1访问该网站,但在尝试自行解决一些问题之后,只打破了服务器(现在我看到403 Forbidden错误)。
这是我的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
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
和我的/ etc / hosts
#
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
192.168.10.10 homestead.app