我遇到了Homestead.yaml文件的正确路由问题,目前正在显示以下“未指定输入文件。”
代码如下:
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/web/sites
to: /home/vagrant/web/sites
sites:
- map: test.app
to: /home/vagrant/web/sites/test
databases:
- homestead
我如何纠正我的问题?
更新
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/web/
to: /home/vagrant/web
sites:
- map: PGM.app
to: /home/vagrant/web/PGM/public
databases:
- homestead
答案 0 :(得分:1)
网站需要有一个索引文件。例如,如果测试目录是Laravel或Lumen应用程序,则它具有公共目录
sites:
- map: test.app
to: /home/vagrant/web/sites/test/public
请注意路径末尾添加public。
一旦您对Homestead.yml文件进行了更改,您就需要使用以下内容重新配置VM以应用更改。
homestead provision