Victor Policastro
Victor Policastro

Reputation: 59

Rails - Integration between databases

I want to do an integration between my local database and my Heroku app. The integration must read my local database with a query and send the information to my Heroku app, there, the information will be processed.

Does anybody did that? Is there any guide for doing that?

Thanks for your time!

Upvotes: 0

Views: 36

Answers (1)

Isaiah Fasoldt
Isaiah Fasoldt

Reputation: 190

There are probably lots of ways to do this. Perhaps the easiest and least, technical solution way to do this would be to write to a csv file the data you want and then upload the csv file into your heroku app where a rake task would read and parse the csv.

A cleaner solution would be to use something like Httparty to post the data from your local app to an API endpoint on your Heroku app. The endpoint controller could then do whatever you want with it.

Upvotes: 0

Related Questions