diff options
author | Alexander Shorin <kxepal@apache.org> | 2014-11-15 21:28:05 +0300 |
---|---|---|
committer | Alexander Shorin <kxepal@apache.org> | 2014-11-16 00:51:15 +0300 |
commit | 806979e0e04e2748dab6aec31cc68254644d3757 (patch) | |
tree | 272eeab66e5c2608f89ee9d3f1ce4f4640c8248d | |
parent | d81b989b2084d5ab870fdaca2c43e140ff70517e (diff) | |
download | couchdb-806979e0e04e2748dab6aec31cc68254644d3757.tar.gz |
Fix port binding and data dirs
-rwxr-xr-x | dev/run | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of @@ -123,12 +123,14 @@ def check_beams(ctx): @log('Prepare configuration files') def setup_configs(ctx): for idx, node in enumerate(ctx['nodes']): - cluster_port, backend_port = get_ports(idx) + cluster_port, backend_port = get_ports(idx + 1) env = { "prefix": ctx['rootdir'], "package_author_name": "The Apache Software Foundation", - "data_dir": ensure_dir_exists("lib", node, "data"), - "view_index_dir": ensure_dir_exists("lib", node, "data"), + "data_dir": ensure_dir_exists(ctx['devdir'], + "lib", node, "data"), + "view_index_dir": ensure_dir_exists(ctx['devdir'], + "lib", node, "data"), "node_name": "-name %s@127.0.0.1" % node, "cluster_port": cluster_port, "backend_port": backend_port |