php - 克隆 Laravel 项目后,我有 500 错误
问题描述
我正在做我的项目(我在 github 上有那个)。我克隆了这个项目,在我尝试打开它(php artisan serv)后,我遇到了错误 500。我尝试创建一个新项目,它可以正常工作。我发现可以生成新密钥
php artisan key:generate
但我有这个错误
file_get_contents(/home/michal/ogloszenia/.env): failed to open stream: No such file or directory
at vendor/laravel/framework/src/Illuminate/Foundation/Console/KeyGenerateCommand.php:96
92| {
93| file_put_contents($this->laravel->environmentFilePath(), preg_replace(
94| $this->keyReplacementPattern(),
95| 'APP_KEY='.$key,
> 96| file_get_contents($this->laravel->environmentFilePath())
97| ));
98| }
99|
100| /**
+17 vendor frames
18 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
我该如何解决我的问题?
解决方案
推荐阅读
- exception - 扩展面板底部溢出
- generative-adversarial-network - 任何用于 GAN 的异步训练方法?
- ios - 嵌套的 UITableView 返回单元格但不显示它
- ubuntu - 挂载 NFS 时访问被拒绝
- kotlin - 对象不是抽象的,也没有实现抽象成员
- python - var == False 或者如果不是 var
- python - 理解递归归并排序过程背后的直觉
- javascript - 如何识别网站是否显示了模态弹出窗口?
- selenium-ide - Selenium IDE 表和源选项卡
- c# - 如果其父对象是 VerticalLayoutGroup,则 Unity ui 对象无法对齐