Skip to content

Commit

Permalink
Update warning message to use correct location (#146)
Browse files Browse the repository at this point in the history
When the `assets.prefix` rails configuration value has been changed, this will result in the manifest file being written into a different directory underneath `/public`

By using this dynamic value in the warning message, it should provide the correct path to the manifest file
  • Loading branch information
phantomwhale authored Aug 21, 2023
1 parent b594f0a commit 7f825c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/propshaft/railties/assets.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace :assets do
Rails.application.assets.processor.process
if Rails.env.development?
puts "Warning: You are precompiling assets in development. Rails will not " \
"serve any changed assets until you delete public/assets/.manifest.json"
"serve any changed assets until you delete public#{Rails.application.config.assets.prefix}/.manifest.json"
end
end

Expand Down

0 comments on commit 7f825c2

Please sign in to comment.