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
This commit is contained in:
parent
8a7fa6e467
commit
908ba32d37
|
@ -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, '.'))
|
||||
|
|
Loading…
Reference in New Issue