You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/09/28 16:49:52 UTC

[23/39] couchdb commit: updated refs/heads/developer-preview-2.0 to 3ac3db6

Set -name to hostname during ./configure for Win64

CC @janl simple enough ;)


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

Branch: refs/heads/developer-preview-2.0
Commit: a84fcb2d98af2781b2c595c15d84ced5474de09c
Parents: 71fb2b8
Author: Joan Touzet <wo...@apache.org>
Authored: Wed Sep 9 22:14:40 2015 -0400
Committer: Joan Touzet <wo...@apache.org>
Committed: Wed Sep 9 22:16:40 2015 -0400

----------------------------------------------------------------------
 configure.ps1 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/a84fcb2d/configure.ps1
----------------------------------------------------------------------
diff --git a/configure.ps1 b/configure.ps1
index 75a6d17..23f2a5b 100644
--- a/configure.ps1
+++ b/configure.ps1
@@ -114,6 +114,7 @@ $InstallDir="$LibDir\couchdb"
 $LogFile="$LogDir\couch.log"
 $BuildFauxton = [int](-not $DisableFauxton)
 $BuildDocs = [int](-not $DisableDocs)
+$Hostname = [System.Net.Dns]::GetHostEntry([string]"localhost").HostName
 
 Write-Verbose "==> configuring couchdb in rel\couchdb.config"
 $CouchDBConfig = @"
@@ -138,7 +139,7 @@ $CouchDBConfig = @"
 {log_file, "$LogFile"}.
 {fauxton_root, "$DataRootDir/couchdb/www"}.
 {user, "$CouchDBUser"}.
-{node_name, "-name couchdb"}.
+{node_name, "-name $Hostname"}.
 {cluster_port, 5984}.
 {backend_port, 5986}.
 "@