Cannot edit rails credentials Rails 5.2

一个人想着一个人 提交于 2019-12-03 08:12:39

Comment the lines where you use your credentials and run EDITOR="atom --wait" rails credentials:edit (and uncomment them after you edit it, obviously). If this doesn't work, delete credentials.yml.enc and try again.

Move or remove credentials.yml.enc and master.key and rerun rails credentials:edit. This worked for me.

I had the same issue as well. I found out that running EDITOR="atom --wait" rails credentials:edit was not sufficient.

If you set Rails.application.credentials.some_api_key in your source code without first defining it in your encrypted credentials, you will be unable to edit the credentials file or even view it. This is presumably because the entire application must run in order for the credentials to be decrypted.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!