From 39fb8f339e7a0f19aa77e28d3ed131b786b618ce Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Wed, 24 Dec 2008 22:10:53 +0000 Subject: I agree with Damien that action.js is more than we want to support right now. External is not activated by default, but remains available, see default.ini for details. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@729376 13f79535-47bb-0310-9956-ffa450edef68 --- etc/couchdb/default.ini.tpl.in | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'etc/couchdb/default.ini.tpl.in') diff --git a/etc/couchdb/default.ini.tpl.in b/etc/couchdb/default.ini.tpl.in index a56e05bc..06fbee1f 100644 --- a/etc/couchdb/default.ini.tpl.in +++ b/etc/couchdb/default.ini.tpl.in @@ -21,8 +21,10 @@ level = info [query_servers] javascript = %bindir%/%couchjs_command_name% %localdatadir%/server/main.js -[external] -action = %bindir%/%couchjs_command_name% %localdatadir%/server/action.js +; enable external as an httpd handler, then link it with commands here. +; note, this api is still under consideration. +; [external] +; mykey = /path/to/mycommand [daemons] view_manager={couch_view, start_link, []} @@ -45,10 +47,9 @@ _restart = {couch_httpd_misc_handlers, handle_restart_req} [httpd_db_handlers] _view = {couch_httpd_view, handle_view_req} _temp_view = {couch_httpd_view, handle_temp_view_req} -; The new location for action servers -_action = {couch_httpd_external, handle_external_req, <<"action">>} -; They'd been here for a while. If something you've been running breaks on you -; try adding the next line to your local.ini. Or better yet replace -; '_external/action' in your urls with '_action'. -; This message will be removed before the next release. + +; The external module takes an optional argument allowing you to narrow it to a +; single script. Otherwise the script name is inferred from the first path section +; after _external's own path. +; _mypath = {couch_httpd_external, handle_external_req, <<"mykey">>} ; _external = {couch_httpd_external, handle_external_req} -- cgit v1.2.3