On Friday, February 20, 2015 at 11:50:50 PM UTC, Jason Hsu, Rubyist wrote:
> As you know, Heroku uses the PostgreSQL database by default.
> 
> However, when you deploy an app that you created with the use of SQLite in 
> the development environment, the config/database.yml file on the Heroku 
> server is still configured for SQLite.
> 
> Exactly how does Heroku make the config/database.yml file relevant?  How does 
> the app get the database name, username, and password in the Heroku 
> environment?

On older rails versions heroku entirely rewrites the database.yml file. On 
rails 4.2 it doesn't need to because rails will use a DATABASE_URL environment 
variable if it is set. See 
https://devcenter.heroku.com/articles/heroku-postgresql#connecting-in-ruby for 
more details 

Fred

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/3d627354-878c-410e-8197-d34335a0010b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to