Skip to content

Commit

Permalink
Add Propshaft .manifest.json to assets_manifests for support (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
taketo1113 authored Dec 29, 2024
1 parent 727fa58 commit 2d4b21c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down
2 changes: 1 addition & 1 deletion lib/capistrano/tasks/assets.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2d4b21c

Please sign in to comment.