My app works fine when run in development environment. In production (rails server -e production), the browser can\'t access the css and js files and on the con
rails server -e production
in Rails 5.x the setting is
config/initializers/assets.rb:
Rails.application.config.public_file_server.enabled = true
https://edgeguides.rubyonrails.org/configuring.html