rails 4 enabled rails to serve static assets: is it correct? (on heroku)

前端 未结 4 1586
长情又很酷
长情又很酷 2021-02-01 03:15

Environment: heroku

Rails: 4

Ruby: 2

We deployed an app to heroku, and it seemed as though anything in the public folder was not accessible (didn\'t see

4条回答
  •  無奈伤痛
    2021-02-01 04:09

    This is deprecated in Rails 4.2, and it is now an alias slated to be removed in Rails 5.0

    config.serve_static_assets = true
    

    It should be changed to:

    config.serve_static_files = true
    

提交回复
热议问题