Server unable to find public folder in rails 3 production environment

后端 未结 2 1297
一整个雨季
一整个雨季 2021-02-01 03:06

I\'m using the latest rails 3 beta. The app works fine in development mode, but when I start the server in production mode via rails server -e production, it seems

相关标签:
2条回答
  • 2021-02-01 03:51

    editing config/environments/production.rb and setting this line:

    config.serve_static_assets = true

    0 讨论(0)
  • 2021-02-01 04:09

    nginx, unicorn and apache will do this automatically. be sure to change this back to false if you are deploying using these servers.

    0 讨论(0)
提交回复
热议问题