Home
ssmagula edited this page Mar 4, 2012
·
2 revisions
Welcome to the Which-Repository wiki!
Some notes for myself:
- Locally the app uses sqlite3 as the database, but Heroku needs to use postgresql. So, I added a gem: pg to a production-only group in the Gemfile.
- Then I ran "bundle install --production" so it would create a new Gemfile.lock, but wouldn't install the Postgres gem locally (only on production server)
- BUG: when I use "heroku run rake db:migrate" it does create the proper database tables, but doesn't migrate the actual data into the production server database. I don't think it wipes out the prod server's data, but need to test...
- TODO: maybe I should use postgresql locally, too?
- Q: Should "heroku run rake db:migrate" move the data to production?