From 579785c120fde45aefbf193dfe4df74bba9bef84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Fri, 20 Apr 2012 23:56:52 +0200 Subject: [PATCH] do not load the whole env to precompile assets [ci skip] --- config/application.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index e9f7f53b9..495567138 100644 --- a/config/application.rb +++ b/config/application.rb @@ -73,6 +73,9 @@ module Diaspora # Enable the asset pipeline config.assets.enabled = true + # Do not load whole env on precompile + config.assets.initialize_on_precompile = false + # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) # Javascripts config.assets.precompile += [ "aspect-contacts.js", "contact-list.js", "finder.js", @@ -94,4 +97,4 @@ end # Only load asset_sync if S3 is configured if RAILS_GROUPS.include?(:assets) && ENV['AWS_ACCESS_KEY_ID'] require 'asset_sync' -end \ No newline at end of file +end