[openstreetmap-website] Custom installation with multiples databases (#980)

franckt notifications at github.com
Thu Jun 4 15:26:59 UTC 2015


Hello to ruby experts,

I'm currenlty work on a project with multiple database installed 
and a modified osm api instance, i added a X-Venue header for requests to route to a specified correctly installed database. 

i updated ApplicationController to connect to the specified database, it works but when i connect to a non existing database, it keeps that connection and returns database not found

https://gist.github.com/franckt/7c6a8cf5f0d7deffb9be

i'm not sure how rails works with pgsql and if establish connection is the good way, it seems that some connection polling somewhere that keeps bad connections

Any help on that ?


---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/980
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20150604/a5c3f2da/attachment.html>


More information about the rails-dev mailing list