From a2fede15e974186f49005779ca8e35a480e381ec Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Mon, 17 Sep 2012 22:55:27 +0100 Subject: [PATCH] Don't connect to the DB when precompiling assets. See https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar#troubleshooting --- config/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index 11c1375cd..16f4ae061 100644 --- a/config/application.rb +++ b/config/application.rb @@ -58,5 +58,8 @@ module Growstuff # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' + + # Don't try to connect to the database when precompiling assets + config.assets.initialize_on_precompile = false end end