How to copy my local db to heroku?
I'm working on a simple Rails (activeRecord based) application, and i'm testing in locally.
开发者_StackOverflow中文版Now it's time to move online, but... do i need to insert all the records again in the app's db? I hope not!
Do you know a if is it possible to make a copy of my entire local db and import it in heroku?
Thanks!
erm, using the Heroku CLI
heroku db:push
job done, built into Heroku - will magically transpose your local DB whether it be sqlite, mysql, postgres to Heroku's shared postgresql db.
Try yaml_db
gem
https://github.com/ludicast/yaml_db
精彩评论