2015-04-04 103 views
0

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

当我编辑宅基地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. 

任何想法?宅基地2.0似乎有点难以为我所听到的新手设置 - 至少与1.0相比时

+0

http://laravel.com/docs/4.2/homestead – 2015-04-04 07:46:10

+0

也许你应该改变'sites.to'到'/家庭/流浪者/ testproject/public' ? – 2015-04-04 15:56:09

回答

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 */ 
+0

似乎给我同样的错误,即使在重新启动流浪环境之后。任何其他想法?我在想这可能与文件夹有关:map – mdobrenko 2015-04-04 17:28:06

+0

更改设置后,您可能需要重新启动宅基地。 – mininoz 2015-04-05 06:13:28