Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…e rake tasks
  • Loading branch information...
commit c622da17f818374861c98b7493e51ef99e23f96f 1 parent efd873f
@hone hone authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/language_pack/rails3.rb
4 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"
- setup_database_url_env
ENV["RAILS_GROUPS"] ||= "assets"
ENV["RAILS_ENV"] ||= "production"
Please sign in to comment.
Something went wrong with that request. Please try again.