Horizon: Add support for performing message compilation
This PS adds support for message compilation, if the image supports it. Change-Id: Ie15a1a437ff516af697a5bb65c5c7831de872c30 Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
parent
4503ad1558
commit
7e27910228
@ -34,6 +34,11 @@ function start () {
|
||||
rm -rf /var/run/apache2/*
|
||||
APACHE_DIR="apache2"
|
||||
|
||||
# If the image has support for it, compile the translations
|
||||
if type -p gettext >/dev/null 2>/dev/null; then
|
||||
cd ${SITE_PACKAGES_ROOT}/openstack_dashboard; /tmp/manage.py compilemessages
|
||||
fi
|
||||
|
||||
# Compress Horizon's assets.
|
||||
/tmp/manage.py collectstatic --noinput
|
||||
/tmp/manage.py compress --force
|
||||
|
Loading…
Reference in New Issue
Block a user