建立家园Laravel

时间:2015-04-04 04:40:06

标签: php laravel

我安装了vagrant,virtualbox,并将hometead添加到我的全球作曲家要求中。我能够在控制台中以预期的输出运行宅基地。

在编辑宅基地YAML文件时,我有点困惑。

folders: 
    - map: ~/sites/testproject
      to: /home/vagrant/testproject

sites: 
    - map: testproject.dev
      to: /home/vagrant/testproject/Laravel/public

这就是我在YAML文件中添加的内容。

我的项目位于:

/Users/mdobrenko/sites/testproject

尝试通过关联的IP或testproject.dev域访问该网站时,出现此错误:

No input file specified.

有什么想法吗?从我听到的东西看,Homestead 2.0似乎有点难以为新手设置 - 至少与1.0相比时

1 个答案:

答案 0 :(得分:1)

一开始,我和你一样迷茫。但经过一番搜索,我得出了这个结论。你的YAML看起来应该是正确的。

folders: 
    - map: ~/sites/testproject
      to: /home/vagrant/sites

sites: 
    - map: testproject.dev
      to: /home/vagrant/sites/testproject/public

<强>解释

/* Mapping path between the local machine and Homestead */
    folders: 
            - map: /* Where is your projects, you might has many projects inside  */
          to: /* The path of your project that will be on Homestead */

/* Setup the site and the root folder of the site */
    sites: 
        - map: /* The url of the project */
          to: /* Path to the public folder of the project */