diff options
| author | Alban Peignier | 2012-07-05 18:40:41 +0200 |
|---|---|---|
| committer | Alban Peignier | 2012-07-05 18:40:41 +0200 |
| commit | ab123be8d9f909b46de5e0f049eb49a8f4c6183c (patch) | |
| tree | 003732873304ed073614248c5ab763e80309926d /lib/tasks | |
| parent | 34cb941725dd15aecb5906f674a196574577567b (diff) | |
| download | chouette-core-ab123be8d9f909b46de5e0f049eb49a8f4c6183c.tar.bz2 | |
Upgrade Rails to 3.2.6. Refs #91
Diffstat (limited to 'lib/tasks')
| -rw-r--r-- | lib/tasks/assets.rake | 4 | ||||
| -rw-r--r-- | lib/tasks/warbler.rake | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 251348b9e..1147b52da 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -1,6 +1,6 @@ namespace :assets do task :environment do - puts "Sprockets::Bootstrap workaround (#{__FILE__})" - Sprockets::Bootstrap.new(Rails.application).run if Rails.application.assets.paths.empty? + # puts "Sprockets::Bootstrap workaround (#{__FILE__})" + # Sprockets::Bootstrap.new(Rails.application).run if Rails.application.assets.paths.empty? end end diff --git a/lib/tasks/warbler.rake b/lib/tasks/warbler.rake index 11aa26155..e69457583 100644 --- a/lib/tasks/warbler.rake +++ b/lib/tasks/warbler.rake @@ -1,7 +1,12 @@ begin require 'warbler' Warbler::Task.new - task :war => "assets:precompile" + + task "war:setup" do + ENV['RAILS_RELATIVE_URL_ROOT'] ||= "/chouette2" + end + + task :war => ["war:setup", "assets:precompile"] rescue LoadError => e puts "Failed to load Warbler. Make sure it's installed." end |
