Reputation: 93
I have scaffolded a rails application (v6.0.3.4), after one day I realised that the master key wasn’t there. I know I can generate it, but it wouldn’t be the 'original', as I understand it.
Is it any possibility that the master key is there and I need a command to make it visible ? Is there any other solution than scaffolding again?
Upvotes: 2
Views: 2959
Reputation: 19
EDITOR=nano rails credentials:edit
When you commit, master.key file will not be committed to Git as it is included in .gitignore by default.
Upvotes: 0
Reputation: 3729
If you did not use credentials in this project before:
rails credentials:edit
or EDITOR=vim rails credentials:edit
Upvotes: 2