因此,我从 Bitbucket 导入了另一个项目并尝试使用 php artisan serve
启动它,我总是收到此错误:
[LogicException]
Key path "file:///var/www/html/DesignViewer5/storage/oauth-private.key" does not
exist or is not readable
我自己制作项目时没有收到此错误,我无法运行任何其他命令。我尝试了“php artisan key:generate”,得到了完全相同的错误。
我试过: composer update
,得到了这个:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
- Updating spatie/laravel-permission (1.11.1 => 1.12.0) Downloading: 100%
Writing lock file
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postUpdate
> php artisan optimize
[LogicException]
Key path "file:///var/www/html/DesignViewer5/storage/oauth-private.key" doe
s not exist or is not readable
Script php artisan optimize handling the post-update-cmd event returned with error code 1
任何人都知道如何解决它?谢谢!
原文由 O‘Niel 发布,翻译遵循 CC BY-SA 4.0 许可协议
我找到了解决方案解决 方案: 在 config/app.php 我不得不评论这些行:
比您需要再次迁移整个数据库,而不是取消注释此行:
并运行
php artisan passport:install
我的应用程序密钥不起作用,所以我必须这样做:而且我做不到
php artisan serve
谢谢!