我正在学习Laravel,似乎在我的homestead.yaml文件中遇到了我的路径问题,但似乎无法弄明白。我收到的错误是“未选择输入文件。”#39;。我有我的主机文件设置,并尝试暂停和配置,但我仍然一直收到此错误。如果有人能指出我正确的方向,我会非常感激。谢谢!
---
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
type: "nsf"
sites:
- map: homestead.app
to: /home/vagrant/Code/homestead.app/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
##
# 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
fe80::1%lo0 localhost
192.168.10.10 homestead.app
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/hosts" 11L, 269C
ping -c 5 192.168.10.10
PING 192.168.10.10 (192.168.10.10): 56 data bytes
64 bytes from 192.168.10.10: icmp_seq=0 ttl=64 time=0.372 ms
64 bytes from 192.168.10.10: icmp_seq=1 ttl=64 time=0.252 ms
64 bytes from 192.168.10.10: icmp_seq=2 ttl=64 time=0.307 ms
64 bytes from 192.168.10.10: icmp_seq=3 ttl=64 time=0.337 ms
64 bytes from 192.168.10.10: icmp_seq=4 ttl=64 time=0.328 ms
--- 192.168.10.10 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.252/0.319/0.372/0.040 ms
.homestead :>
答案 0 :(得分:0)
此错误几乎总是由不正确的Web根导致,
检查/home/vagrant/Code/homestead.app/public
是宅基地箱上的正确路径。
或storage
文件夹的权限,laravel需要storage
中几个子文件夹的写权限。
检查网络服务器用户是否有权写入该文件夹。