Reputation: 5629
in my Rails application all my js and css is in public folder.
in dev mode it works fine. but when I switch to production mode it dosn't work no css and js is found.
what could be the problem?
Upvotes: 0
Views: 1260
Reputation: 6749
In your app/config/environments/production.rb
, check if the following statement is present:
config.serve_static_assets = true
Upvotes: 2
Reputation: 11580
You'll need to enable this behaviour for production. Within config/environments/production.rb
, set the following
config.serve_static_assets = true
Upvotes: 2