Created
September 12, 2014 17:00
-
-
Save nrb/a20c69c54f5990082928 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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