I’m experimenting with using Heroku Postgres for my development database (no Postgres running on the local machine). I’d like to have a config/database.yml like this:
My first instinct is to re-use .env from Foreman. I think this works for the running server but not for rake tasks and test runs. Any thoughts on the best way to get those environment variables loaded?
Recently I have been using the figaro gem to get the job done with setting ENV variables. I used it to set up the env variable for my development database also that connects to heroku postgres