You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2009/01/13 02:39:07 UTC
[Couchdb Wiki] Update of "ExternalProcesses" by JeffHinrichs
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.
The following page has been changed by JeffHinrichs:
http://wiki.apache.org/couchdb/ExternalProcesses
The comment on the change is:
added the modification to httpd_db_handlers section and ammended the text
------------------------------------------------------------------------------
== Configuration ==
- Adding external processes is as easy as pie. Simply place key=command pairs in the ''[external]'' section of your ''local.ini'' like:
+ Adding external processes is as easy as pie. Simply place key=command pairs in the ''[external]'' section of your ''local.ini'' and then map those handlers in the ''[httpd_db_handlers]'' section, like:
{{{
;Including [log] and [update_notification] for context
@@ -71, +71 @@
[external]
test = /usr/local/src/couchdb/test.py
+ [httpd_db_handlers]
+ _test = {couch_httpd_external, handle_external_req, <<"test">>}
+
[update_notification]
;unique notifier name=/full/path/to/exe -with "cmd line arg"
}}}
@@ -78, +81 @@
This configuration will make the ''/usr/local/src/couchdb/test.py'' responsible for handling requests from the url:
{{{
- http://127.0.0.1:5984/${dbname}/_external/test
+ http://127.0.0.1:5984/${dbname}/_test
}}}
== Example External Process ==