The Twelve-Factor App

2014-11-04 16:59:48 +08:00
 Livid
http://12factor.net/

Heroku 关于架构设计和运维的知识总结。

可以直接导入到 iBook 中阅读 http://12factor.net/12factor.epub
4552 次点击
所在节点    DevOps
5 条回复
Livid
2014-11-04 19:10:34 +08:00
Livid
2014-11-04 19:12:00 +08:00
其实距离这份来自 Heroku 的 best practice 的最后更新时间已经过去两年多了,我很好奇的是,在 2014 年,是否有什么新的更好的方法论呢?
yuankui
2014-11-05 03:49:00 +08:00
干货!
arbipher
2014-11-06 15:08:50 +08:00
http://12factor.net/logs 里面提到:
A twelve-factor app never concerns itself with routing or storage of its **output stream**. It should not attempt to write to or manage logfiles. Instead, each running process writes its event stream, unbuffered, to stdout.

In staging or production deploys, each process’ stream will be captured by the execution environment, collated together with all other streams from the app, and routed to one or more final destinations for viewing and long-term archival.

这个意思是"我的代码中所有的Log.debug, Log.error都替换成print吗?",感觉这样很别扭啊。。。
arbipher
2014-11-07 01:35:07 +08:00
自问自答了。。。
[Logs Are Streams, Not Files](http://adam.herokuapp.com/past/2011/4/1/logs_are_streams_not_files/) 这篇博客算是解释了这个问题。

“要说找到也不能说完全没有找到;概念上是理解了的样子”

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/143905

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX