我在Windows上,我正在尝试与Laravel Homestead合作。
实际上我遇到的问题是“没有选择输入文件”似乎网址不正确。
我真正的道路是:
C:\Users\Lluis\Projects
我的项目在哪里
D:\Homestead_Projects
我想在制作流浪汉的时候复制它。
我的homestead.yaml
文件如下所示:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: c:/Users/Lluis/.ssh/id_rsa.pub
keys:
- c:/Users/Lluis/.ssh/id_rsa
folders:
- map: d:/Homestead_Projects
to: c:/Users/Lluis/Projects
sites:
- map: homestead.app
to: c:/Users/Lluis/Projects/puvik/public
databases:
- homestead
有人看到错误吗?谢谢!
修改现在文件如下所示
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Projects
to: /home/vagrant/Projects
sites:
- map: homestead.test
to: /home/vagrant/Projects/puvik/public
databases:
- homestead
答案 0 :(得分:1)
你的文件夹映射有点偏。
试试这个:
folders:
- map: c:/Users/Lluis/Projects
to: /home/vagrant/projects
sites:
- map: homestead.test
to: /home/vagrant/projects/puvik/public
确保您不再使用.app
Chrome不喜欢它。使用.test
答案 1 :(得分:0)
就我而言,我不得不做一个流浪条款来重新加载VM
`vagrant provision`