Skip to content

Instantly share code, notes, and snippets.

@nrb
Created Sep 12, 2014
Embed
What would you like to do?
iff --git a/lib/horizon b/lib/horizon
index 614a0c8..802b80a 100644
--- a/lib/horizon
+++ b/lib/horizon
@@ -92,6 +92,8 @@ function init_horizon {
local local_settings=$HORIZON_DIR/openstack_dashboard/local/local_settings.py
cp $HORIZON_SETTINGS $local_settings
+ _horizon_config_set $local_settings "" COMPRESS_OFFLINE True
+
if is_service_enabled neutron; then
_horizon_config_set $local_settings OPENSTACK_NEUTRON_NETWORK enable_security_group $Q_USE_SECGROUP
fi
@@ -154,6 +156,9 @@ function init_horizon {
# has been successfully started (see start_horizon() and functions::screen_it())
sudo rm -f /var/log/$APACHE_NAME/horizon_*
+ DJANGO_SETTINGS_MODULE=openstack_dashboard.settings django-admin.py collectstatic --noinput
+ DJANGO_SETTINGS_MODULE=openstack_dashboard.settings django-admin.py compress
+
}
# install_django_openstack_auth() - Collect source and prepare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment