You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have upgraded to Rails 8, and migrated from Sprockets to Propshaft for the assets, but now when we deploy to Heroku the task "assets:precompile" is run always, despite having config.assets.compile = false.
Looking to the code in your ruby buildpack the assets will not be compile if a (sprockets) 'manifest' file exits in 'public/assets/' dir.
Since we don't use Sprockets now we don't have a 'manifest' file anymore in our repo, that's the reson the assets compile run.
if Dir.glob("public/assets/{.sprockets-manifest-*.json,manifest-*.json}", File::FNM_DOTMATCH).any?
puts "Detected manifest file, assuming assets were compiled locally"
return true
end
Is there an alternative way to not run the assets using this buildpack? or will you adapt the code for when not using Sprockets? meanwhile the solution we found is writing a dummy/empty public/assets/manifest-heroku.json. But when running "assets:clobber" it gets deleted and we have to create it again.
Please, excuse me if I am wrong
Thank you and regards.
The text was updated successfully, but these errors were encountered:
Hi there,
We have upgraded to Rails 8, and migrated from Sprockets to Propshaft for the assets, but now when we deploy to Heroku the task "assets:precompile" is run always, despite having
config.assets.compile = false
.Looking to the code in your ruby buildpack the assets will not be compile if a (sprockets) 'manifest' file exits in 'public/assets/' dir.
Since we don't use Sprockets now we don't have a 'manifest' file anymore in our repo, that's the reson the assets compile run.
heroku-buildpack-ruby/lib/language_pack/rails4.rb
Line 64 in de38337
Is there an alternative way to not run the assets using this buildpack? or will you adapt the code for when not using Sprockets? meanwhile the solution we found is writing a dummy/empty public/assets/manifest-heroku.json. But when running "assets:clobber" it gets deleted and we have to create it again.
Please, excuse me if I am wrong
Thank you and regards.
The text was updated successfully, but these errors were encountered: