Homestead 配置不起作用
Homestead config does not work
我为 homestead 创建了这个配置。当我加载 http://loc.medifaktor 时,我只得到 returned: "No input file is specified"
本地文件夹结构如下所述正确,所以我看到了所有文件并且可以访问它们。为什么会出现 return 这个错误?
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Documents/Development/Source/
to: /home/vagrant/Source
sites:
- map: loc.medifaktor
to: /home/vagrant/Source/MFServer/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
这是我的 etc/hosts:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
192.168.10.10 loc.medifaktor
127.0.0.1 loc.medifaktor
尝试通过 ssh 进入虚拟机,然后 运行:
serve loc.medifaktor /home/vagrant/Source/MFServer/public
我为 homestead 创建了这个配置。当我加载 http://loc.medifaktor 时,我只得到 returned: "No input file is specified"
本地文件夹结构如下所述正确,所以我看到了所有文件并且可以访问它们。为什么会出现 return 这个错误?
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Documents/Development/Source/
to: /home/vagrant/Source
sites:
- map: loc.medifaktor
to: /home/vagrant/Source/MFServer/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
这是我的 etc/hosts:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
192.168.10.10 loc.medifaktor
127.0.0.1 loc.medifaktor
尝试通过 ssh 进入虚拟机,然后 运行:
serve loc.medifaktor /home/vagrant/Source/MFServer/public