Skip to content

Instantly share code, notes, and snippets.

@bmaland
Created November 18, 2010 18:26
Show Gist options
  • Select an option

  • Save bmaland/705381 to your computer and use it in GitHub Desktop.

Select an option

Save bmaland/705381 to your computer and use it in GitHub Desktop.
zero:~/Projects/crantastic $ heroku console
Ruby console for crantastic.heroku.com
>> puts File.read(Rails.configuration.database_configuration_file)
---
production:
encoding: unicode
adapter: postgresql
username: something_random
port: 5432
host: somewhere.at.heroku
database: something_random
password: something_random
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment