How to use secrets.yml for API_KEYS in Rails 4.1?

前端 未结 4 1323
挽巷
挽巷 2021-02-05 02:55

In one of my recent projects I started out by .gitignoring the files containing secrets and environment variables. So the entire project is committed to the repo ex

4条回答
  •  感情败类
    2021-02-05 03:19

    I know this question is specific to Rails 4.1, but those who upgrade to Rails 5.1 it now includes built in secret generation. Which seems a much better way to handle sensitive data in your rails app.

    See: http://edgeguides.rubyonrails.org/5_1_release_notes.html#encrypted-secrets

提交回复
热议问题