Testing Horizon git snapshots
Testing horizon git checkouts
One of the cool things in Horizon is, one can easily try newest things out. This assumes, you already have an OpenStack installation available somewhere.
If you haven't already installed git:
yum install git
To clone horizons upstream git repository, run the command
git clone https://github.com/openstack/horizon cd horizon cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.py
Then please edit the file openstack_dashboard/local/local_settings.py and adjust
ALLOWED_HOSTS = ['*'] ... OPENSTACK_HOST = "127.0.0.1"
OPENSTACK_HOST has to point to your keystone instance, in this case to 127.0.0.1.
The development server requires a dependencies. If you didn't already install them, just run:
yum install gcc python-devel python-virtualenv openssl-devel libffi-devel which
To start your development server:
./run_tests.sh -m collectstatic
will start your Horizon instance from your git checkout. It can be accessed via http://<ip>:8000, in most cases, that is http://localhost:8000 .
Updating your checkout
The following snippet will pull in latest changes from git, will copy changed static files to the right places and will run your django development server.
git fetch && git pull ./run_tests.sh -m collectstatic ./run_tests.sh --runserver