I usually use ~/.bashrc in my development machine for storing facebook/twitter/etc api-key for the rails app and obtain it like ENV["KEY"].
Is there any good practice for storing those keys in production mode (say on VPS server)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ryan Bates from Railscasts did a great screencast on keeping tokens and passwords in a YAML file and out of your repo.
http://railscasts.com/episodes/85-yaml-configuration-revised
update: After reading your question, I’m not sure this is relevant since this applies more to your local development environment.