diff --git a/doc/source/installation.rst b/doc/source/installation.rst index 39690f7..559be23 100644 --- a/doc/source/installation.rst +++ b/doc/source/installation.rst @@ -59,6 +59,12 @@ MacOSX: $ xcode-select --install $ sudo easy_install pip $ sudo pip install virtualenv + $ + $ # If you need to run KloudBuster Web UI from PyPI installation, + $ # coreutils needs to be installed using Homebrew. + $ # Refer here for the steps to install Homebrew on Mac: + $ # http://brew.sh/ + $ brew install coreutils Step 2: Install KloudBuster in a virtual environment ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/doc/source/usage.rst b/doc/source/usage.rst index 701dbdc..1410a82 100644 --- a/doc/source/usage.rst +++ b/doc/source/usage.rst @@ -65,6 +65,10 @@ The Web UI URL to use from any browser is:: http://:8080/ui/index.html +For your convenience, the server will redirect the root of the address to the +Web UI by default. i.e. http://:8080/ will get you into the UI +directly. + Starting the KloudBuster Server from PyPI installation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/kb_server/kb_server/controllers/root.py b/kb_server/kb_server/controllers/root.py index 4291e90..c1956aa 100644 --- a/kb_server/kb_server/controllers/root.py +++ b/kb_server/kb_server/controllers/root.py @@ -16,6 +16,8 @@ from api_cfg import ConfigController from api_kb import KBController from pecan import abort from pecan import expose +from pecan import response + class APIController(object): @expose() @@ -27,7 +29,13 @@ class APIController(object): else: abort(404) + class RootController(object): + @expose() + def index(self): + response.status = 301 + response.location = "ui/index.html" + @expose() def _lookup(self, primary_key, *remainder): if primary_key == "api":