Skip to content

Instantly share code, notes, and snippets.

@nrb
Created September 12, 2014 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nrb/a20c69c54f5990082928 to your computer and use it in GitHub Desktop.
Save nrb/a20c69c54f5990082928 to your computer and use it in GitHub Desktop.
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