使用Laravel Homestead:“未指定输入文件"

编程入门 行业动态 更新时间:2024-10-22 21:36:50
本文介绍了使用Laravel Homestead:“未指定输入文件"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我对使用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:“未指定输入文件"

本文发布于:2023-10-31 15:47:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1546547.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   Laravel   Homestead   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!