Permalink
Browse files

don't load environment on precompile

  • Loading branch information...
1 parent 648e9a1 commit 6d3d21f343450fd1b96149af1d4072d0f74b0551 Scott Klein committed Mar 24, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 config/application.rb
View
@@ -53,6 +53,9 @@ class Application < Rails::Application
# Enable the asset pipeline
config.assets.enabled = true
+ # Don't load the environment on precompile (fixes Heroku DB issue)
+ config.assets.initialize_on_precompile = false
+
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
end

0 comments on commit 6d3d21f

Please sign in to comment.