Why is the rails_12factor gem necessary on Heroku?

后端 未结 6 416
情歌与酒
情歌与酒 2021-01-01 17:13

I noticed that the new version of Michael Hartl\'s Ruby on Rails Tutorial says to include the following to serving static assets on Heroku

gem \'rails_12facto

6条回答
  •  南方客
    南方客 (楼主)
    2021-01-01 18:11

    In the Getting Started with Rails 4.x on Heroku, we can read this:

    Heroku integration has previously relied on using the Rails plugin system, which has been removed from Rails 4. To enable features such as static asset serving and logging on Heroku please add rails_12factor gem to your Gemfile.

提交回复
热议问题