0

In my Rails App, I scraped many data from other websites, and it's all on my local development database. Now, I want to deploy my website to Heroku, and I want to upload the local data as well, so I don't need to scrape those data again. How can I do it?

I think I can just convert the local data(just a few models) into yml, or csv, and then write a rake task to read from those file.

I'm wondering if there are better approaches.

ZK Zhao
  • 19,885
  • 47
  • 132
  • 206

1 Answers1

2

I think what you are looking for is this

Allows you to take backup of your db using simple commands and then you just need to restore it on the live database . Quite easy .

Caffeine Coder
  • 1,869
  • 1
  • 17
  • 35