Server unable to find public folder in rails 3 production environment

后端 未结 2 1310
一整个雨季
一整个雨季 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

提交回复
热议问题