couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject [42/47] couchdb commit: updated refs/heads/enable-csp-default to dbd38a1
Date Fri, 28 Nov 2014 21:00:44 GMT
Fix port binding and data dirs


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/806979e0
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/806979e0
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/806979e0

Branch: refs/heads/enable-csp-default
Commit: 806979e0e04e2748dab6aec31cc68254644d3757
Parents: d81b989
Author: Alexander Shorin <kxepal@apache.org>
Authored: Sat Nov 15 21:28:05 2014 +0300
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Sun Nov 16 00:51:15 2014 +0300

----------------------------------------------------------------------
 dev/run | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/806979e0/dev/run
----------------------------------------------------------------------
diff --git a/dev/run b/dev/run
index bb1286d..d25c7c6 100755
--- a/dev/run
+++ b/dev/run
@@ -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


Mime
View raw message