2015-09-08 24 views
1

我想弄清楚我的宅基地設置是否有問題laravel/homestead盒子是否帶有默認的網站設置?

我跟着官方direction。在教程的最後,教程說可以訪問http://homestead.app。然而,當我在我的Chrome運行的地址,我得到了No input file specified.消息

我不知道這是否是默認的頁面,所以我檢查使用

homestead ssh 

我的目錄,並發現

- map: /Users/Projects 
    to: /home/vagrant/Projects 

這兩個目錄裏面都沒有任何文件,我不確定這是否是默認行爲,但是根據這個tutorial應該有一個文件夾列表

app artisan bootsrap composer.json composer.lock .... 
+0

我認爲發表評論解釋downvotes將是有建設性的,這將幫助我改善未來和現在的問題。 – Kevin

回答

0

我不記得是否宅基地帶有默認的網站,但你homestead.yaml(你可以用homestead edit打開它)的文件應該是這樣的:

--- 
ip: "192.168.10.10" 
memory: 2048 
cpus: 1 
provider: virtualbox 

authorize: ~/.ssh/id_rsa.pub 

keys: 
    - ~/.ssh/id_rsa 

folders:      //This is where vagrant will look for your projects 
    - map: ~/Code    //This is your host folder 
     to: /home/vagrant/Code //This is your homestead folder 

sites:       //These are the urls that nginx will serve 
    - map: homestead.app 
     to: /home/vagrant/Code/homestead/public 
    - map: site2.app 
     to: /home/vagrant/Code/site2/public 

databases: 
    - homestead 

variables: 
    - key: APP_ENV 
     value: local 

通常情況下,宅基地配備了Code文件夾,您可以在其中找到laravel項目(如果默認有一個)。

此外,請記住將URL添加到您的主機文件。

相關問題