My rails app (v 5.2.4.1) works perfectly in local with config.assets.compile = true. All the assets (images, js etc) are correctly loaded. It works too in production with the same config (but it's very slow...)
So i read here config.assets.compile=true in Rails production, why not? that it's a better way so set config.assets.compile = false in production
config.assets.compile = false
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
config.assets.css_compressor = :sass
config.assets.debug = false
config.assets.digest = true
config.public_file_server.enabled = true
After set to false I made this command RAILS_ENV=production rake assets:precompile (all the assets are generated in public/assets on Heroku)
i restart the server but all images are lost and .js are not loaded ?
Where is my mistake ?