Homestead.yaml路由导致“未指定输入文件”

时间:2016-05-20 14:26:42

标签: laravel unix vagrant homestead

我遇到了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

1 个答案:

答案 0 :(得分:1)

网站需要有一个索引文件。例如,如果测试目录是Laravel或Lumen应用程序,则它具有公共目录

sites:
  - map: test.app
    to: /home/vagrant/web/sites/test/public

请注意路径末尾添加public。

一旦您对Homestead.yml文件进行了更改,您就需要使用以下内容重新配置VM以应用更改。

homestead provision