Connect URL with pathname in it #115

efolio opened this Issue Nov 20, 2012 · 1 comment


None yet
2 participants

efolio commented Nov 20, 2012


My co-worker has got a server with a couchdb server not available from the root (aka "/") web directory but from a subdirectory : something like

I couldn't find a way to connect to the DB using nano since it always tries to extract the DB name from the URL (here trying to connect to a "_couch" database), so I patched the JS file in ordre to do that.

Here is the patch file corresponding to my changes:

This way, if you specify a "db" attribute in the constructor of the module, nano appends it to the complete URL, instead of trying to extract the DB name from the URL.


dscape commented Nov 20, 2012

Hi @ornthalas — Can you please re open this as a pull request? I want to merge it in but this is not very maintainable this way.

Here is an article on how you can do that:

Please send me the pull request and I'll merge it to nano, and publish a new version you can use

Thank you!

@dscape dscape closed this Nov 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment