尝试使用Laravel护照Api登录时,在Heroku服务器中出错。迁移和密钥生成一切正常。但是在本地工作正常。
任何人都可以通过以下方法帮助我如何在heroku服务器中生成此密钥吗?
heroku run php artisan passport:key
感谢您的宝贵时间。完整的错误消息
{ "message": "Key path \"file:///app/storage/oauth-private.key\" does not exist or is not readable", "exception": "LogicException", "file": "/app/vendor/league/oauth2-server/src/CryptKey.php", "line": 48, "trace": [ { "file": "/app/vendor/laravel/passport/src/PassportServiceProvider.php", "line": 243, "function": "__construct", "class": "League\\OAuth2\\Server\\CryptKey", "type": "->" }, { "file": "/app/vendor/laravel/passport/src/PassportServiceProvider.php", "line": 209, "function": "makeCryptKey", "class": "Laravel\\Passport\\PassportServiceProvider", "type": "->" } ]
}
尝试使用Laravel护照Api登录时,在Heroku服务器中出错。迁移和密钥生成一切正常。但是在本地工作正常。谁能帮我如何在...
您不提及安装步骤。假设您执行了以下操作: