incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Hendricks <mich...@ndrix.org>
Subject [PATCH] Point to the web interface after starting CouchDB
Date Wed, 14 May 2008 02:48:01 GMT
When first time CouchDB users start the server, it's not obvious
what the next step should be.  Providing a link to the online
management interface helps newcomers start playing with CouchDB
quickly.  For those who have used CouchDB for a while, having the
link handy can also convenient.
---

This is my first bit of Erlang ever.  Any suggestions are welcome.

 src/couchdb/couch_server_sup.erl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/couchdb/couch_server_sup.erl b/src/couchdb/couch_server_sup.erl
index 2231815..e27a409 100644
--- a/src/couchdb/couch_server_sup.erl
+++ b/src/couchdb/couch_server_sup.erl
@@ -176,7 +176,8 @@ start_server(InputIniFilename) ->
     case StartResult of
     {ok,_} ->
         % only output when startup was successful
-        io:format("Apache CouchDB has started. Time to relax.~n");
+        io:format("Apache CouchDB has started. Time to relax.~n"),
+        io:format("Management interface at http://~s:~s/_utils/index.html~n", [BindAddress,
Port]);
     _ ->
         % Since we failed startup, unconditionally dump configuration data to console
         io:format("~s", [ConfigInfo]),
-- 
1.5.5.23.g2a5fe


Mime
View raw message