Rails will not serve static files during production

I recently updated my application from 2.3.8 to 3.0.rc, but after a while in the development environment, I tried the production environment. But now it will not serve static files.

I use standard development and production environment options and do not have unique gems for both environments. Everything works like a charm in development, but will not serve static files in the production process.

Using ruby-1.8.7-p299 and each gem updated. Using WEBrick on my server, run rails s -e production -p 3001

Anyone with some solutions or tips for this?

+6
ruby-on-rails production
source share
1 answer

After some additional digging, I found a parameter in the production.rb file, config.serve_static_assets , which was set to false, and since I do not run apache or nginx static files where they were not sent. blush

+15
source share

All Articles