解决安装Laravel Homestead 后出现'No input file specified'的问题 - 小众知识

解决安装Laravel Homestead 后出现'No input file specified'的问题

2015-11-21 11:26:25 苏内容
  标签: Laravel/Homestead
阅读:5765

http://laravel.com/docs/4.2/homestead
http://stackoverflow.com/questions/24274387/using-laravel-homestead-no-input-file-specified


I am new to using Laravel, and Homestead, and would appreciate any help or a point in the right direction. I have successfully been able to get to the "You have arrived" screen when I run "php artisan serve" but when I try to do the same thing via Vagrant, I get "no input file specified". My Homestead.yaml file looks like this:

authorize: /Users/me/.ssh/id_rsa.pub

keys:
    - /Users/me/.ssh/id_rsa

folders:
    - map: /Users/me/code/exampleproject
      to: /home/vagrant/code/exampleproject

sites:
    - map: exampleproject.app
      to: /home/vagrant/code/exampleproject/public

variables:
    - key: APP_ENV
      value: local
On my computer I have the following directories:

/Users/me/code/Homestead
/Users/me/code/exampleproject //this is the directory created with composer
On my Vagrant Box I have for some reason two directories named "code" and "Code":

/home/vagrant/code/exampleproject
/home/vagrant/Code
I have checked and I can see changes made to my computer exampleproject files are reflected in the vagrant box files.

Not really sure how to figure this out!! I would really appreciate any help possible :)


Instead of reinstalling try

vagrant up --provision

or

homestead up --provision


or if it's already up, just "vagrant provision" – Thunder Rabbit Aug 11 '14 at 7:33
   
thanks so much! – mmw5610 May 19 at 10:24
   
vagrant up --provision didn't work for me, but homestead up --provision did – zillaofthegods Jun 24 at 19:21

扩展阅读
相关阅读
© CopyRight 2010-2021, PREDREAM.ORG, Inc.All Rights Reserved. 京ICP备13045924号-1