diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-08-27 12:41:29 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-27 12:41:29 -0400 |
commit | 8d210c53854e965aec4c0a5964b78ac9dc7c9849 (patch) | |
tree | d03f237c9e073cf22b73a9132f27e4a50dd8e4f5 | |
parent | bce619cbf5a720e409de9f05387c10e86586ba26 (diff) |
configure ports and node names, also correct a few bugs
-rwxr-xr-x | configure | 7 | ||||
-rw-r--r-- | rel/overlay/etc/default.ini | 10 |
2 files changed, 12 insertions, 5 deletions
@@ -49,6 +49,9 @@ cat > rel/overlay.config << EOF {data_dir, "$DATA"}. {view_dir, "$VIEW"}. {user, "$DBCORE_USER"}. +{node_name, "-name dbcore"}. +{cluster_port, 5984}. +{backend_port, 5986}. EOF cat > install.mk << EOF @@ -64,6 +67,10 @@ for i in 1 2 3; do cat > rel/dev$i.config << EOF {prefix, "$DIRPATH/rel/dev$i"}. {data_dir, "$DIRPATH/rel/tmpdata/dev$i"}. +{view_dir, "$DIRPATH/rel/tmpdata/dev$i"}. +{node_name, "-name dev$i@127.0.0.1"}. +{cluster_port, `expr 10000 \* $i + 5984`}. +{backend_port, `expr 10000 \* $i + 5986`}. EOF done diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini index be65f7bc..da61df26 100644 --- a/rel/overlay/etc/default.ini +++ b/rel/overlay/etc/default.ini @@ -14,12 +14,12 @@ w=2 n=3 [chttpd] -port = 5984 +port = {{cluster_port}} backlog = 512 -docroot = {{prefix}}/var/share/www +docroot = {{prefix}}/share/www [httpd] -port = 5986 +port = {{backend_port}} bind_address = 0.0.0.0 authentication_handlers = {couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, default_authentication_handler} default_handler = {couch_httpd_db, handle_request} @@ -60,9 +60,9 @@ auth_cache={couch_auth_cache, start_link, []} [httpd_global_handlers] / = {couch_httpd_misc_handlers, handle_welcome_req, <<"Welcome">>} -favicon.ico = {couch_httpd_misc_handlers, handle_favicon_req, "{{prefix}}/var/share/www"} +favicon.ico = {couch_httpd_misc_handlers, handle_favicon_req, "{{prefix}}/share/www"} -_utils = {couch_httpd_misc_handlers, handle_utils_dir_req, "{{prefix}}/var/share/www"} +_utils = {couch_httpd_misc_handlers, handle_utils_dir_req, "{{prefix}}/share/www"} _all_dbs = {couch_httpd_misc_handlers, handle_all_dbs_req} _active_tasks = {couch_httpd_misc_handlers, handle_task_status_req} _config = {couch_httpd_misc_handlers, handle_config_req} |