Permalink
Browse files

Don't load env and connect to db when precompiling

assets (prevent Heroku errors during deploy).
  • Loading branch information...
thegreatape committed Nov 6, 2012
1 parent 620172a commit 20a241f5c24da3f86c665c8845a52ade5e3ff8a4
Showing with 3 additions and 0 deletions.
  1. +3 −0 config/application.rb
View
@@ -44,5 +44,8 @@ class Application < Rails::Application
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
+
+ # don't load env and connect to db when precompiling assets
+ config.assets.initialize_on_precompile = false
end
end

0 comments on commit 20a241f

Please sign in to comment.