nbudin / heroku_external_db

Makes it easy to connect to external databases from a Heroku app
MIT License
40 stars 5 forks source link

PostgreSQL #4

Closed lusabo closed 13 years ago

lusabo commented 13 years ago

Is it possible your gem work with PostgreSQL?

nbudin commented 13 years ago

Yes, several people are currently using it to do just that.

Nat

On Oct 6, 2011, at 9:15 AM, Luciano Borges reply@reply.github.com wrote:

Is it possible your gem work with PostgreSQL?

Reply to this email directly or view it on GitHub: https://github.com/nbudin/heroku_external_db/issues/4

lusabo commented 13 years ago

How to configure to work with postgresql?

nbudin commented 13 years ago

heroku_external_db uses the same environment variable format that Heroku itself does for its database configuration:

adapter://user:password@host/database

So for postgres, you would put postgres://... as the variable name.

See http://devcenter.heroku.com/articles/database#database_urls for more information from Heroku.