0

I have added index.css to /app/assets/stylesheets and index.js to /app/assets/javascript. I have read that I do not need to reference them anywhere else if they are in these folders.

When I run the app with -e development everything works fine, but if I do with -e production, the styles and functions of those files are not found.

Any ideas?

1 Answers1

0

You probably didn't precompile the assets which is required when running production.

RAILS_ENV=production bin/rake assets:precompile
wspurgin
  • 2,600
  • 2
  • 17
  • 20