Why is the rails_12factor gem necessary on Heroku?

后端 未结 6 394
情歌与酒
情歌与酒 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 17:49

    Older question, but FWIW Rails 5 Apps do not require the rails_12factor gem. Per the README:

    We worked with the Rails core team to make Rails 5 work on twelve-factor platforms out of the box.

    There is also a snippet for migrating to Rails 5.

提交回复
热议问题