Skip to content
This repository

Connect URL with pathname in it #115

Closed
Ornthalas opened this Issue November 20, 2012 · 1 comment

2 participants

Ornthalas Nuno Job
Ornthalas

Hi,

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 http://domain.com/_couch/.

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:
http://pastebin.instantbird.com/103949

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.

Nuno Job
Owner

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!

Nuno Job dscape closed this November 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.