Rails can\'t load (404 error) CSS & JS files on production but has no problem loading them in development.
I\'m using Capistrano for deployment and running Rails
I fixed this problem by running this command:
RAILS_ENV=production rake assets:precompile
Reference: http://guides.rubyonrails.org/asset_pipeline.html
My environment is Nginx + Unicorn + Rails4
Nginx
Unicorn
Rails4