Skip to content

Instantly share code, notes, and snippets.

@lucascaton
Created October 15, 2019 05:09
Show Gist options
  • Save lucascaton/5bc4478734dabeec5f4896566361bbf6 to your computer and use it in GitHub Desktop.
Save lucascaton/5bc4478734dabeec5f4896566361bbf6 to your computer and use it in GitHub Desktop.
Env Encrypted file Secret key path Command
Generic config/credentials.yml.enc config/master.key rails credentials:edit
Development config/credentials/development.yml.enc config/credentials/development.key rails credentials:edit --environment development
Test config/credentials/test.yml.enc config/credentials/test.key rails credentials:edit --environment test
Staging config/credentials/staging.yml.enc config/credentials/staging.key rails credentials:edit --environment staging
Production config/credentials/production.yml.enc config/credentials/production.key rails credentials:edit --environment production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment