没用过,顶
Gravatar 上的头像如果没有自定义头像,会 404 错误。 http://ruby-china.org/avatar/dcac77909cd7f6c5818348b486a8e204.png?s=120&d=404
像这个地址的默认头像,在 Gravatar 提示找不到。
以下是我加在 Nginx 里面的配置
location /avatar
{
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://gravatar.com;
proxy_cache gravatar;
proxy_cache_valid 200 302 300d;
proxy_cache_valid 404 502 1m;
expires 7d;
}
最后现象是: http://gravatar.com/avatar/dcac77909cd7f6c5818348b486a8e204.png?s=120&d=404 http://我的Servername/avatar/dcac77909cd7f6c5818348b486a8e204.png?s=120&d=404 这两个都不能访问提示 404 而把不能访问的 url 替换成http://ruby-china.org/avatar/dcac77909cd7f6c5818348b486a8e204.png?s=120&d=404 却可以访问。应该是你在 nginx 做了特殊处理。能透露一下吗?
#7 楼 @huacnlee 我在服务器上面部署过头像代理的,有一些特别的处理。能告知什么特别处理吗? http://gravatar.com/avatar/.png?s=120&d=404这是不能访问的。
换成 ruby-china.org 就行。
@ proxy_cache ruby_china;这里错了
@yesmeck 切换到 production,没有重复发评论的问题了。
活动结束了,资料赶紧分享一下阿!@shichuan
配置了 google_analytics_key,不过没有数据。会不会和日志中的错误有关
>> Thin web server (v1.3.1 codename Triple Espresso)
>> Maximum connections set to 10240
>> Listening on 0.0.0.0:3001, CTRL+C to stop
!! Rack application returned nil body. Probably you wanted it to be an empty string?
!! Unexpected error while processing request: undefined method `each' for nil:NilClass
!! Rack application returned nil body. Probably you wanted it to be an empty string?
!! Unexpected error while processing request: undefined method `each' for nil:NilClass
!! Rack application returned nil body. Probably you wanted it to be an empty string?
!! Unexpected error while processing request: undefined method `each' for nil:NilClass
!! Rack application returned nil body. Probably you wanted it to be an empty string?
!! Unexpected error while processing request: undefined method `each' for nil:NilClass
!! Rack application returned nil body. Probably you wanted it to be an empty string?
!! Unexpected error while processing request: undefined method `each' for nil:NilClass
!! Rack application returned nil body. Probably you wanted it to be an empty string?
!! Unexpected error while processing request: undefined method `each' for nil:NilClass
这个错误很多的。
找半天原来也在 config.yml 中
google_analytics_key: ""
upload_url: ""
upyun_username: ""
upyun_password: ""
upyun_bucket: ""
google_group_email: ""
email_sender: ''
aws_access_key_id: ''
aws_secret_access_key: ''
twitter_token: ""
twitter_secret: ""
github_token: ""
github_secret: ""
douban_token: ""
douban_secret: ""
google_js_api_key: ""
最后 google_js_api_key 是做什么用的呢?
佛山太远
#14 楼 @dexterdeng 只是你还没弄明白做些什么是 QQ 短期拷贝不了的。
你这点小事还有啥纠结的,我都 33 了,还不照样转行弄新的。
org.apache.solr.common.SolrException: Unknown fieldtype 'text' specified on field *_text
版主做一个 rails 的云服务呗!
@FrozenDoggy 想干,可惜我们几个技术在广州。
[root@west8028 ~]#yum install ImageMagick
[root@west8028 ~]# convert -version
Version: ImageMagick 6.5.4-7 2012-05-07 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
For Ruby China 开发者们,注意 config.yml 里面多了个 gravatar_proxy 配置项。
gravatar_proxy 的作用是什么,能解释一下吗?