I am working on a localhost app which is backed by a MySQL database. However I would like to deploy to Heroku which I have read is bacekd by PostGreSQL.
What is the best way of doing so? I have thought of doing this in the Gemfile:
group :development do
gem 'mysql2'
end
group :test do
gem 'pg'
end
But, how would I configure the database.yml?
Is this the correct approach?
This page has an example configuration:
Tutorial: Rails 3.2 with Ruby 1.9.3 on Heroku · RailsApps
That tutorial assumes you have SQLite locally. If you want MySQL, just use in your Gemfile
You do not have to do any special setup; Heroku will generate it for you once you push.
Note (from Heroku):
Local gems note (from the tutorial):