Ruby China
  • Topics
  • 招聘
  • Wiki
  • Gems
  • Sign Up
  • Sign In
李华顺
@huacnlee
Admin
NO. 2 / 2011-10-28

[email protected]
长桥证券 (Longbridge)
成都
503 Topics / 9083 Replies
967 Followers
53 Following
105 Favorites
Reward
GitHub Public Repos
  • autocorrect 1617

    A linter and formatter to help you to improve copywriting, correct spaces, words, and punctuation...

  • rails-settings-cached 1122

    Global settings for your Rails application.

  • rucaptcha 702

    Captcha Gem for Rails, which generates captcha image by Rust.

  • zed-theme-macos-classic 164

    A macOS native style theme for Zed, let it same like native app in macOS.

  • color-lsp 51

    A document color language server.

  • zed-extension-action 38

    GitHub Action for automatically bump Zed Extensions version after a release.

  • zed-csv 22

    CSV support for Zed

  • gpui-workspace 15

    Dock layout UI component for GPUI, that extracted from Zed project.

  • autocorrect-action 12

    GitHub action for use AutoCorrect as lint

  • zed-autocorrect 9

    AutoCorrect for Zed

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • gems.ruby-china.org 最近两天 Bad Gateway 502 的问题 at May 11, 2016

    问题已经找到,解决了!

    原因:UpYun 对文件在 CDN 里面存储的时间有一个缓存设置界面,按其他云主机的习惯,我设定了:

    • /quick
    • /gems

    我的期望是对这两个目录的文件长久缓存 1 年,再配合 UpYun 的镜像存储功能,让用户端的请求尽可能的命中 CDN 和 UpYun 的存储。

    但经过刚才的检查发现,这个规则不对,UpYun 的缓存设置界面对目录的设置,需要用 * 通配符才可以,于是我修改成了这样:

    再次测试,返回的 Cache-Control 和我设定的值一致了:


    应该问题是这样的:

    • 由于缓存规则有错,UpYun 用了默认的缓存时间;
    • 默认的缓存时间未达到镜像存储的要求,所以这些文件过期以后任然会回源到国外的 RubyGems 服务器;
    • CDN 缓存时间过期后,UpYun 尝试请求回源地址,由于可能遇到网络问题,失败了,502;
    • 用户重试,或其他用户命中相同文件,回源成功了,CDN 再次缓存一段时间,然后持续这个周期;
  • 谁有一份 CODE 和 NAME 对应的 json 格式的国家列表 at May 11, 2016

    https://github.com/hexorx/countries

    All sorts of useful information about every country packaged as convenient little country objects. It includes data from ISO 3166 (countries and states/subdivisions ), ISO 4217 (currency), and E.164 (phone numbers).

  • 一键将你的 Rails 应用变成 PHP 应用 at May 11, 2016

    RailsConf 上面 @tenderlove 就演示过,开玩笑说我们将会迎来 PHP 模板

  • 用 gems-ruby-china 安装 gem 报错----Gem::RemoteFetcher::FetchError at May 11, 2016

    这个事情的公告:https://ruby-china.org/topics/29978

    问题已经解决了。

  • RubyChina for Android - 1.0.0 第三方应用发布啦 at May 11, 2016

    #12 楼 @hanji 上次重构了 API,可能某个地方没对,当时大致都测过,发现没问题的。

    你的问题,请给出详细说明,在 GitHub 上面提交 Issue

  • 新手求教,bundle install 总是失败应该怎么弄,是因为被墙的原因么?rails server 总是报错说缺少宝石。 at May 11, 2016

    最近 UpYun 不太问题,gems.ruby-china.org 安装的时候可能会偶尔有几个文件 502,重试就好了

    我已经给 UpYun 那边提了工单,询问这个问题的原因了。

    这个事情的公告:https://ruby-china.org/topics/29978


    问题已经解决了,详见公告

  • carrierwave 使用 github 的版本不能搭配 aliyun 插件 at May 10, 2016

    #1 楼 @u1450154824 试试 0.4.4 版本,刚刚发布了。

    我暂时不在 carrierwave 的高版本里面应用 MimeType,不知道行不行,有待测试。 官方那个去掉那个文件的 PR 里面没讲替代方案

  • carrierwave 使用 github 的版本不能搭配 aliyun 插件 at May 10, 2016

    我来试试

  • 请教关于同一个 domain 下面部署 2 个应用 (静态和动态) at May 09, 2016

    官方 Guides 里面就提到了如何将 Rails 部署在一个子目录下面的方式:

    http://guides.rubyonrails.org/configuring.html#deploy-to-a-subdirectory-relative-url-root

    config.relative_url_root = "/app1"
    
  • Google App Engine 支持 Ruby 了 at May 09, 2016

    来得太晚了,现在选择多了

  • GitHub 中国区前 100 名到底是什么样的人? at May 08, 2016

    挖坟了

  • [杭州] App 招聘开发人员 at May 07, 2016

    @sunfjun 把人人影视影视的网站以开源的方式来搞

  • [杭州] App 招聘开发人员 at May 06, 2016

    #3 楼 @catherine 以前他们是 PHP 的

  • [杭州] App 招聘开发人员 at May 06, 2016

    军哥,错别字好多!

  • RailsConf 2016 - 直播中 at May 05, 2016

    成都哦

  • 用源 gems.ruby-china.org 报错,之后用 ruby.taobao.org 替代后好了,请管理员关注下 at May 05, 2016

    #15 楼 @ibachue

  • RailsConf 2016 - 直播中 at May 05, 2016

    #3 楼 @danjiang 9 月,我们在准备中了

  • 这字体丑的我想哭 at May 05, 2016

    #15 楼 @apkbus 不是不理你,可能有几种情况:

    1. 我、或者其他人没空
    2. 你没表达清楚
    3. 我觉得那不是问题或暂时不是问题
    4. 我知道那是问题,但没空处理
  • 大量网站易受 ImageMagick 漏洞影响 at May 05, 2016

    #2 楼 @hooopo 赶紧默默的修改了 😄

  • 通过 Nginx 启用 HTTP/2 at May 05, 2016

    #17 楼 @hxh1246996371 哪当然了,我上面的内容是安装默认的 Nginx 内容。

    Passenger 是三方 module

  • RailsConf 2016 - 直播中 at May 05, 2016

    本周 rails-5.0.0.rc1 要发布出来

  • 用源 gems.ruby-china.org 报错,之后用 ruby.taobao.org 替代后好了,请管理员关注下 at May 04, 2016

    #11 楼 @tvallday 用 Ruby China 的,有问题我会尽快处理的

  • 这字体丑的我想哭 at May 04, 2016

    更新字体发布了,再看看效果

  • 通过 Nginx 启用 HTTP/2 at May 04, 2016

    #14 楼 @hxh1246996371 右键菜单里面启用

  • 用源 gems.ruby-china.org 报错,之后用 ruby.taobao.org 替代后好了,请管理员关注下 at May 03, 2016

    问题可能是多方面的,之前 UpYun 上面配置的回源地址是到一个 QCloud 的负载均衡上面,然后再到国外 QCloud 的主机(这个时候,QCloud 地址直接访问是没有问题的,看起来服务都是正常的),而恰好 UpYun 回源过去这样无法连通,怀疑可能是两个点之间存在某些问题导致(具体不清楚,没地方查)

  • 用源 gems.ruby-china.org 报错,之后用 ruby.taobao.org 替代后好了,请管理员关注下 at May 03, 2016

    然后这样一来我开始质疑 UpYun 上面配置缓存以及镜像存储功能了,照理说上面几个文件都是热门的,老早就应该长久存在国内 UpYun 的服务器上面了,缓存有效期是一年,并且有开镜像存储(文件永久存到 UpYun 里面),以后的请求都是国内的。

  • 用源 gems.ruby-china.org 报错,之后用 ruby.taobao.org 替代后好了,请管理员关注下 at May 03, 2016

    切了一下回源地址,问题解决了

  • 用源 gems.ruby-china.org 报错,之后用 ruby.taobao.org 替代后好了,请管理员关注下 at May 03, 2016

    @gazeldx 已给 UpYun 提交工单了,我发现还有好多文件都有同样的问题

  • Prev
  • 1
  • 2
  • …
  • 56
  • 57
  • 58
  • 59
  • 60
  • …
  • 264
  • 265
  • Next
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English