From what I can compile, Heroku should automatically generate the database.yml file and ignore the local one. However, I see an error where this is not the case, and my changes to local database.yml affect the Heroku application. This is problematic because I have no idea how to set up the production part of the file so that Heroku can find the database I need.
For example, with the following
production: adapter: sqlite3 database: db/production.sqlite3 pool: 5 timeout: 5000
and then db: migration
$:~/Apps/DancingCupid/DancingCupid$ heroku rake --trace db:migrate
spits out
rake aborted! unable to open database file /app/.bundle/gems/ruby/1.8/gems/activerecord-3.0.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:27:in `initialize' ...
I can get different errors depending on what type of database I sent for production.
Besides removing the application and creating a new one, is there any way to fix this problem?
source share