diff --git a/README.md b/README.md index a5c3832..d0cad68 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ set :assets_roles, [:web, :app] # This should match config.assets.prefix in your rails config/application.rb set :assets_prefix, 'prepackaged-assets' -# Defaults to ["/path/to/release_path/public/#{fetch(:assets_prefix)}/.sprockets-manifest*", "/path/to/release_path/public/#{fetch(:assets_prefix)}/manifest*.*"] +# Defaults to ["/path/to/release_path/public/#{fetch(:assets_prefix)}/.sprockets-manifest*", "/path/to/release_path/public/#{fetch(:assets_prefix)}/manifest*.*", "/path/to/release_path/public/#{fetch(:assets_prefix)}/.manifest.json"] # This should match config.assets.manifest in your rails config/application.rb set :assets_manifests, ['app/assets/config/manifest.js'] diff --git a/lib/capistrano/tasks/assets.rake b/lib/capistrano/tasks/assets.rake index 46c3ead..83cfc73 100644 --- a/lib/capistrano/tasks/assets.rake +++ b/lib/capistrano/tasks/assets.rake @@ -136,7 +136,7 @@ namespace :load do set :assets_roles, fetch(:assets_roles, [:web]) set :assets_prefix, fetch(:assets_prefix, 'assets') set :assets_manifests, -> { - %w[.sprockets-manifest* manifest*.*].map do |pattern| + %w[.sprockets-manifest* manifest*.* .manifest.json].map do |pattern| release_path.join("public", fetch(:assets_prefix), pattern) end }