Permalink
Browse files

Don't load env and connect to db when precompiling

assets (prevent Heroku errors during deploy).
  • Loading branch information...
1 parent b505cd3 commit 58aa8f7d7323e76b62aec727bd4141aa9cc458c3 @thegreatape committed Nov 6, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 config/application.rb
@@ -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 58aa8f7

Please sign in to comment.