Skip to content

Instantly share code, notes, and snippets.

@danielres
Created January 1, 2011 17:46
Show Gist options
  • Select an option

  • Save danielres/761877 to your computer and use it in GitHub Desktop.

Select an option

Save danielres/761877 to your computer and use it in GitHub Desktop.
rails: read password data from a text file
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