Create credentials for production environment
To create credentials for production environment, we can run the following command:
$ EDITOR="code --wait" rails credentials:edit --environment productionThe above command does the following:
- Creates
config/credentials/production.keyif missing. Don’t commit this file. - Creates
config/credentials/production.yml.encif missing. - Decrypts and opens the production credentials file in the default editor.
We share the production.key with limited members of our team who have access for production deployment.
Comments
Post a Comment