我对使用Laravel和Homestead并不陌生,希望能对您有所帮助或朝着正确的方向发展.当我运行"php artisan serve"时,我已经成功进入您已到达"屏幕,但是当我尝试通过Vagrant做同样的事情时,却得到未指定输入文件".我的Homestead.yaml文件如下所示:
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由于某种原因,在我的无家可归者"盒子上有两个名为"code"和"Code"的目录:
On my Vagrant Box I have for some reason two directories named "code" and "Code":
/home/vagrant/code/exampleproject /home/vagrant/Code我已经检查了,可以看到对我的计算机exampleproject文件所做的更改反映在无所事事的文件框中.
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 :)
推荐答案代替重新安装try
vagrant up --provision或
homestead up --provision更多推荐
使用Laravel Homestead:“未指定输入文件"
发布评论