【发布时间】:2017-08-05 07:42:44
【问题描述】:
所以,我从 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
有人知道怎么解决吗?谢谢!
【问题讨论】:
标签: php laravel laravel-5 oauth-2.0 laravel-passport