2015-04-04 78 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