Permalink
Browse files

setup DATABASE_URL env before detecting rake task since it breaks som…

…e rake tasks
  • Loading branch information...
1 parent efd873f commit c622da17f818374861c98b7493e51ef99e23f96f @hone hone committed Dec 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/language_pack/rails3.rb
@@ -36,13 +36,13 @@ def plugins
# runs the tasks for the Rails 3.1 asset pipeline
def run_assets_precompile_rake_task
log("assets_precompile") do
+ setup_database_url_env
+
if rake_task_defined?("assets:precompile")
topic("Preparing app for Rails asset pipeline")
if File.exists?("public/assets/manifest.yml")
puts "Detected manifest.yml, assuming assets were compiled locally"
else
- setup_database_url_env
-
ENV["RAILS_GROUPS"] ||= "assets"
ENV["RAILS_ENV"] ||= "production"

0 comments on commit c622da1

Please sign in to comment.