为什么Heroku上需要rails_12factor gem? [英] Why is the rails_12factor gem necessary on Heroku?
问题描述
我注意到Michael Hartl的 Ruby on Rails教程的新版本声称包含以下内容来为Heroku上的静态资源提供服务
gem'rails_12factor',group :: production
他的书的以前版本没有那个。有人可以解释Heroku发生的事情需要这种宝石的细节吗?
解决方案我能找到的最佳答案是通过查看 rails_12factor自述文件。
还有一个关于Heroku为什么决定加入宝石的讨论:为什么这个宝石存在?
特别是阅读 schneems 大约在页面的中间位置。
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_12factor', group: :production
The previous version of his book did not have that. Can someone explain the details of what happened with Heroku that requires this gem?
The best answer I could find is by looking at the rails_12factor README.
There's also a discussion on why Heroku decided to include the gem: Why does this gem exist? Especially read the answer from schneems about halfway down the page.
这篇关于为什么Heroku上需要rails_12factor gem?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!