在Heroku平台上部署Laravel 5.4应用程序时,我遇到错误。 p>
< pre> 这是因为 我已经安装了需要私钥的护照包,它存储在Laravel App的Storage文件夹中。 p>
我可以删除这行 但我更喜欢永久安全的解决方案。 如何安全地将私钥放入heroku。 p>
div>密钥路径“file:///app/storage/oauth-private.key”不存在或不可读
code> pre>
/ storage / * .key code> 来自 .gitignore strong>解决问题 p>
I am getting below Error when Laravel 5.4 app was deployed on Heroku Platform.
Key path "file:///app/storage/oauth-private.key" does not exist or is not readable
This is because I have installed passport package which requires private keys and which are stored on Storage folder of Laravel App.
I can simply remove this line /storage/*.key
from .gitignore fo fix the issue
But I prefer a permanent and safe solution. How can I put private keys in heroku safely.