From 908ba32d379ab91738f63a267ac41299e673dbbe Mon Sep 17 00:00:00 2001 From: Scott Carleton Date: Thu, 14 Nov 2013 18:22:44 -0500 Subject: [PATCH] Avoiding double manifest files Capistrano chokes if there's two manifest files. http://meta.discourse.org/t/rails-4-non-digest-assets-and-capistrano/10948?u=scotterc --- lib/tasks/assets.rake | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index f06469c37b2..451abba2eb7 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -9,6 +9,7 @@ task 'assets:precompile' => 'environment' do regex = /(-{1}[a-z0-9]{32}*\.{1}){1}/ assets.each do |file| next if File.directory?(file) || file !~ regex + next if File.extname(file) == ".json" # Avoid duplicate manifest source = file.split('/') source.push(source.pop.gsub(regex, '.'))