couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "ExternalProcesses" by JeffHinrichs
Date Tue, 13 Jan 2009 01:39:07 GMT
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 ==

Mime
View raw message