繁体   English   中英

设置宅基Laravel

[英]Setting up homestead Laravel

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

在编辑Homestead 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相比

一开始,我和您一样感到困惑。 但是经过一番搜索,我得出了这个结论。 您的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 */

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM