I\'m trying to deploy a basic app and it\'s not working. Using
git push heroku master
I got this error message:
remote:
Sometimes Heroku throws an issue on deployment about assets. You can precompile assets and push it to Heroku.
RAILS_ENV=production bundle exec rake assets:precompile
Update:
In case of it doesn't work, make sure to add
RAILS_SERVE_STATIC_FILES env. to yr server.
Make it enabled or true nor anything :)
Because in Rails <5.1 production.rb has
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
Heroku: App -> Settings -> "Reveal Config Vars"
Sample: