Rails 5.2 encrypted credentials not saving
I also had this problem with using atom as editor. I have tried:
EDITOR="atom --wait" rails credentials:edit
and
EDITOR="atom -w" rails credentials:edit
but no results. Finally, I used nano (ubuntu):
EDITOR="nano" rails credentials:edit
For me, this works fine. Maybe, it will be helpful for someone, as an alternative.
If you aren't using vim
, you need to add a wait
flag to the editor.
e.g for atom
:
EDITOR="atom --wait" rails credentials:edit
I ran into the same thing and found the answer here.