以下是 log
Started GET "/system/letter_avatars/2/D/149_114_207/64.png" for ::1 at 2017-03-17 21:38:50 +0800
Processing by HomeController#error_404 as PNG
Parameters: {"path"=>"system/letter_avatars/2/D/149_114_207/64"}
(1.0ms) SELECT COUNT(*) FROM "new_notifications" WHERE "new_notifications"."user_id" = 2 AND "new_notifications"."read_at" IS NULL
DEPRECATION WARNING: `:nothing` option is deprecated and will be removed in Rails 5.1. Use `head` method to respond with empty response body. (called from block (2 levels) in render_optional_error_file at /Users/daqing/v8os/products/homeland/app/controllers/application_controller.rb:73)
Rendering text template
Rendered text template (0.0ms)
Completed 404 Not Found in 7ms (Views: 1.1ms | ActiveRecord: 1.0ms)
那个 PR 我看了,按照上面说的修改就好了。我用的是 ES 5
还遇到一个问题:
新注册的用户,小头像显示不出来:
对啊,但是似乎有 bug,代码我还没详细看。
我们现在都是在容器中跑 Rails,依然是用 RAILS_ENV 环境变量来指定运行环境。
是啊,你现在在哪?
现在在济南
离开北京好多年
hanami 我也在看
这个很好解决啊。这个问题就像:一个节点有多个话题,一个话题有多个评论。那么在评论里要不要存储节点 ID。
如果需要查询某个节点下的所有评论,那么就要存储。否则不用存。
但是这样的话,如果 container 迁移到别的机器上了,volume 不能自动迁移。
映射到物理磁盘,是用 docker volume 吗?
盈利模式呢亲
Ruby 学了吗
#10 楼 @nowherekai 这个服务很有启发
我写的 Rabel: https://github.com/daqing/rabel,简洁论坛软件,代码量不大
#1 楼 @wppurking #5 楼 @doitian 明白了,多谢两位
不做了。
清空本地缓存后,问题消失了。
作为新项目来开发了:http://rabelapp.com/t/488
#2 楼 @ShiningRay 博客用 typecho 搭建的
(用)Rails(做复杂的项目) 真简单呀
支持楼主继续写~
支持楼主,多跟客户交流~
#16 楼 @hpyhacking 撮合引擎也是 Ruby 开发的吗?
期待。。