简体   繁体   中英

Can we connect to multiple database connections after the Application has been deployed to production on Rails?

I am new to Rails and need some help on this! Can we connect to a local database and production database simultaneously after the project has been deployed to production ??

for example : My application when deployed to production, with a click of a button on the page, it should toggle between the usage of production database and the user's local database.Is that possible ?

Thanks!

You can do this, there are some clues in the comments here:

And a more comprehensive guide here:

But it's a bit of a faff - why do you need to do this, maybe there is another way to achieve what you want?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM