diff options
author | José Valim <jose.valim@gmail.com> | 2012-01-06 08:12:03 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-01-06 08:12:03 -0800 |
commit | a579d4bb5f1ec1166762f9365c5e3bb2c49225dd (patch) | |
tree | a6e0af5ccc5409bc48f1a8daca78c20740db0a32 | |
parent | 6005736a98f0ea7c1b9285ebc059819e49874ef3 (diff) | |
parent | 205674408b1d45d188af2fd59a6f6734f461976b (diff) | |
download | rails-a579d4bb5f1ec1166762f9365c5e3bb2c49225dd.tar.gz rails-a579d4bb5f1ec1166762f9365c5e3bb2c49225dd.tar.bz2 rails-a579d4bb5f1ec1166762f9365c5e3bb2c49225dd.zip |
Merge pull request #4352 from kennyj/improve_3694-2
[3-2-stable] Don't fork a process when assets:precompile:nondigest is invoked in assets:precompile:all.
-rw-r--r-- | actionpack/lib/sprockets/assets.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake index a61a121d55..43405f3db9 100644 --- a/actionpack/lib/sprockets/assets.rake +++ b/actionpack/lib/sprockets/assets.rake @@ -1,12 +1,12 @@ require "fileutils" namespace :assets do - def ruby_rake_task(task) + def ruby_rake_task(task, fork = true) env = ENV['RAILS_ENV'] || 'production' groups = ENV['RAILS_GROUPS'] || 'assets' args = [$0, task,"RAILS_ENV=#{env}","RAILS_GROUPS=#{groups}"] args << "--trace" if Rake.application.options.trace - ruby(*args) + fork ? ruby(*args) : Kernel.exec(FileUtils::RUBY, *args) end # We are currently running with no explicit bundler group @@ -59,7 +59,7 @@ namespace :assets do # required in order to compile digestless assets as the # environment has already cached the assets on the primary # run. - ruby_rake_task "assets:precompile:nondigest" if Rails.application.config.assets.digest + ruby_rake_task("assets:precompile:nondigest", false) if Rails.application.config.assets.digest end task :primary => ["assets:environment", "tmp:cache:clear"] do |