Created
January 1, 2011 17:46
-
-
Save danielres/761877 to your computer and use it in GitHub Desktop.
rails: read password data from a text file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| production: | |
| adapter: mysql | |
| database: my_db | |
| username: db_user | |
| password: <%= begin IO.read("/home/my_deploy_user/.db") rescue "" end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment