gpt4 book ai didi

laravel - 使用 Laravel Homestead : 'no input file specified'

转载 作者:行者123 更新时间:2023-12-02 10:40:56 29 4
gpt4 key购买 nike

我是 Laravel 和 Homestead 的新手,希望得到任何帮助或正确方向的指导。当我运行“php artisanserve”时,我已经成功地进入“您已到达”屏幕,但是当我尝试通过 Vagrant 执行相同的操作时,我得到“未指定输入文件”。我的 Homestead.yaml 文件如下所示:

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

在我的计算机上有以下目录:

/Users/me/code/Homestead
/Users/me/code/exampleproject //this is the directory created with composer

在我的 Vagrant Box 上,出于某种原因,我有两个名为“code”和“Code”的目录:

/home/vagrant/code/exampleproject 
/home/vagrant/Code

我已经检查过,可以看到对我的计算机示例项目文件所做的更改已反射(reflect)在 vagrant box 文件中。

不太确定如何解决这个问题!我真的很感激任何可能的帮助:)

最佳答案

不要重新安装尝试

vagrant up --provision

homestead up --provision

关于laravel - 使用 Laravel Homestead : 'no input file specified' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24274387/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com