Rails App Not Serving Assets in Production Environment
When testing locally your production environment, you have to compile the assets locally. Simply run the command below: RAILS_ENV=production bundle exec rake assets:precompile It will generate all the assets under public/assets. Next, you have to tell Rails to serve the assets itself. Server software (eg. Nginx or Apache) do it for you on environments like … Read more