Document the steps to setup Web UI on MACs
1. Document the steps to setup Web UI on MACs; 2. Change the URL to point to UI by default; Change-Id: I309c582512c68c71aff9da975218b93f474b4f0d
This commit is contained in:
parent
050dd4b76f
commit
d5c0fff830
|
@ -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
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
@ -65,6 +65,10 @@ The Web UI URL to use from any browser is::
|
|||
|
||||
http://<floating_ip>: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://<floating_ip>:8080/ will get you into the UI
|
||||
directly.
|
||||
|
||||
|
||||
Starting the KloudBuster Server from PyPI installation
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue