From c2c73f5254eee66e643f560e347b58163b0c12ab Mon Sep 17 00:00:00 2001 From: Witold Bedyk Date: Thu, 26 Nov 2015 15:01:57 +0100 Subject: [PATCH] Move Grafana to Apache's DocumentRoot Static files are normally deployed with django's 'manage.py collectstatic'. When run with --clear option, which seems to be default in some distributions (e.g. RDO), all static resources are deleted first. Current Horizon integration creates link to Grafana in static directory. Runing collectstatic --clear leaves Grafana corrupted. Proposed solution: Move Grafana to Apache's DocumentRoot. also see: https://github.com/hpcloud-mon/ansible-monasca-ui/pull/6 Change-Id: Icbb2eecd45dfb1da48f63464ac83acb9e06cd71f --- README.md | 6 +++--- monitoring/overview/templates/overview/index.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7c69243b..3c6acded 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ by monasca-vagrant. * git clone https://github.com/openstack/horizon.git # clone horizon * git clone https://github.com/hpcloud-mon/grafana.git -* ln -s grafana/src horizon/static/grafana +* ln -r -s grafana/src *apache_document_root*/grafana * cd horizon * Add git+https://github.com/openstack/monasca-ui.git to requirements.txt @@ -55,8 +55,8 @@ ln -s ../monasca-ui/monitoring monitoring ##Set up Grafana ``` -cd static -ln -s ../../grafana/src grafana +cd .. +ln -r -s grafana/src /grafana cd grafana cp config.monasca.js config.js ``` diff --git a/monitoring/overview/templates/overview/index.html b/monitoring/overview/templates/overview/index.html index 89ea648c..2396630f 100644 --- a/monitoring/overview/templates/overview/index.html +++ b/monitoring/overview/templates/overview/index.html @@ -1,5 +1,5 @@ {% extends 'base.html' %} -{% load static i18n %} +{% load i18n %} {% block title %}{% trans 'Monitoring' %}{% endblock %} {% block page_header %} @@ -9,7 +9,7 @@ {% block main %}
{% for dashboard in dashboards %} - + {% trans dashboard.title %}