Problem
I am creating a rails 5.2 template. I've created a new project which is a fork of the template. I don't want to use the same config/master.key
since this would be shared across X
other projects. Is there a way to generate a new key & config/credentials.yml.enc
pair? That way I could include a config/credentials.yml.enc.sample
and they run rails credentials:new
or something then copy the contents over?
Can't find anything in the documentation or google/so searches about this and my alternative is to use the same key across all my public projects :,(
/config/master.key
or/config/credentials/production.key
that are related to credentials in.gitignore
file. Also, you might need to runrails credential:edit
in a new terminal tab. (This is in addition to commenting out all the lines that includeRails.application.credentials...
in your code.) – Mixon