In my case some incompatible gem was using something along the lines:
config.assets.precompile << %r(bootstrap-sass/assets/fonts/bootstrap/[\w-]+\.(?:eot|svg|ttf|woff2?)$)
Removing the gem, or updating it could fix the issue.
This is because the gem was made for older Rails version.
That wasn't clear directly from the console output.
For my case, as updating the gem wasn't possible at the time being, the solution was to remove the problematic asset path, by adding in application.rb
due to compatibility:
config.after_initialize do
bootstrap_index = config.assets.precompile.index(/bootstrap\/glyphicons-halflings-regular\.(?:eot|svg|ttf|woff2?)$/)
config.assets.precompile.delete_at(bootstrap_index)
end
And adding missing file that should be precompiled to:
config.assets.precompile += %w( .svg .eot .woff .ttf .woff2)
environment/production.rb
config.assets.precompile += %w[*.png *.jp?g *.gif] Why isn't this default ;ike this line says:(application.js, application.css, and all non-JS/CSS are already added)
– Occultismconfig.assets.precompile += %w[*.png *.jpg *.jpeg *.gif]
– Casiano