Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
冀宇航
@jiyuhang110
Member
NO. 17025 / 2015-01-26

[email protected]
无
郑州
3 Topics / 26 Replies
5 Followers
10 Following
8 Favorites
前Qt程序员,现rails新手
GitHub Public Repos
  • workflowy 16

    React 模仿 workflowy 和 国内模仿workflowy的幕布网; 充满了未知 Bug

  • CovertToSuperMemo 9

    小工具,能够批量制作可以导入SuperMemo的Q&A文档。现在可导入单词

  • docker-pull-proxy 5

  • ztype-qml 5

    qml 打字游戏

  • helm-wrapper 3

    A Helm3 HTTP Server Wrapper by helm Go SDK, help you manage helm charts with HTTP RESTFul API

  • fucking-algorithm 2

    手把手撕LeetCode题目,扒各种算法套路的裤子,not only how,but also why. English version supported!

  • vimrc 1

    我自己的vim配置 my vimrc

  • dictation-ruby 0

    英语单词听写-命令行 dictation

  • myGPTReader 0

    myGPTReader is a slack bot that can read any webpage, ebook, video(YouTube) or document and summa...

  • study-go 0

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 深圳 Ruby 活动 2021 年 01 月 活动总结 ( 内有干货 ) at January 15, 2021

    对这个《如何利用 GrahpQL 和代码生成器提高生产力》很感兴趣

  • 有法子加入类型系统么 at April 11, 2019

    我会一直使用 Ruby 写各种各样的代码,直到它开始要求添加静态类型

  • 在搬瓦工 VPS 上个人项目部署后无法正常访问,Rails + Nginx + Passenger at March 25, 2019

    @Rei 正解

  • RubyConf China 2017 视频 at September 20, 2017

    专门听了自己问的关于打包程序的问题。还是现场更容易听清楚

  • 我该不该走 at April 29, 2017

    及时止损。说出承诺不兑现的人,不值得跟随。你的老板没有跟你一起工作的诚意

  • 实现一个代码补全的思路 at January 02, 2017

    如果某个类型 include 的 module 非常多,而且还引入另一个文件的类呢

  • 使用 acme.sh 给 Nginx 安装 Let’ s Encrypt 提供的免费 SSL 证书 at December 28, 2016

    刚花 100 多块钱,买了 3 年的的 cheapssl 哀伤😭

  • Nginx 配置问题 (想要 https 和 http 都可以访问) at December 28, 2016

    #9 楼 @starshine 非 80 端口不清楚。不过我知道你的配置肯定缺少 proxy_set_header X-Forwarded-Proto https,楼主多尝试,成功后求分享经验

  • Nginx 配置问题 (想要 https 和 http 都可以访问) at December 23, 2016

    楼主参考这个网页的设置,关键点是 proxy_set_header X-Forwarded-Proto https; https://www.digitalocean.com/community/questions/error-too-many-redirect-on-nginx

    I just had the exact same problem after enabling SSL. The issue for me was I have Rails set to config.force_ssl = true which relies on the proxy_set_header X-Forwarded-Proto https; header to know whether the request was over SSL or not. I didn't have that header to Rails would receive an SSL request thinking it wasn't with SSL which caused it to redirect to https.

    Here's my working config:

    upstream puma {
      server unix:///home/deploy/apps/genus/shared/tmp/sockets/genus-puma.sock;
    }
    
    server {
      listen 80;
      listen 443 ssl;
      server_name genusapp.com;
    
      ssl_certificate /home/deploy/apps/genus/genusapp_com.pem;
      ssl_certificate_key /home/deploy/apps/genus/genusapp_com.key;
      ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
      ssl_prefer_server_ciphers on;
      ssl_ciphers AES256+EECDH:AES256+EDH:!aNULL;
    
    
      root /home/deploy/apps/genus/current/public;
      access_log /home/deploy/apps/genus/current/log/nginx.access.log;
      error_log /home/deploy/apps/genus/current/log/nginx.error.log info;
    
      location ^~ /assets/ {
        gzip_static on;
        expires max;
        add_header Cache-Control public;
      }
    
      try_files $uri/index.html $uri @puma;
      location @puma {
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_redirect off;
    
        proxy_pass http://puma;
      }
    
      error_page 500 502 503 504 /500.html;
      client_max_body_size 10M;
      keepalive_timeout 10;
    }
    
  • [郑州] 民生药业集团,招聘 Ruby on Rails 高级开发,JS 高级开发。 at August 23, 2016

    支持楼主,郑州 rails 加油

  • 怎么在 Rails 里面使用自定义类 at June 20, 2016

    放到 config/initialize 文件夹,即可

  • OS X 翻墙,ss 配合 proxychain & polipo at May 26, 2016

    我一般需要命令行翻墙的时候会设置全局翻墙,就搞定了

  • 当 public 目录下存在 index.html 时路径请求问题 at May 23, 2016

    nginx 的配置文件,里面有个 tryfile,你搜索下它的意思。调整一下$uri/index 的位置,或删除它,估计可以解决你的问题

  • 为什么一般都不推荐在 Windows 上玩 ruby? at May 01, 2016

    我非常想让 ruby 代码能够在 windows 下顺利执行。如果是像 mruby 那样能随意镶嵌到其他程序里是我梦寐以求的。 但是,ruby 的 gem 很多都不是用纯 ruby 写的,或多或少依赖于其他的 c 语言库,这个时候,由于 windows 下没有像 mac 下 brew,或 ubuntu 下 apt-get 这样方便的工具。新手遇到此类问题是很难解决的。 其实,这样的问题,在 mac 下也有,装个 therubyracer 简直恶心死新手。

  • 如何劝说别人使用英文资料? at March 14, 2016

    要我吧,我最爱翻墙查英文资料

  • 在 erb 中使用 hash,在生成的 HTML 中,多了这个 hash 本身的输出 at March 07, 2016

    #2 楼 @leomayleomay #3 楼 @msg7086 十分感谢二位。去掉等号就可以了

  • [分享] dict_cache 帮助你在 terminal 里查询单词和浏览查询记录 at March 07, 2016

    我下载过 mdx 格式的词典,然后分析格式,将每个单词的解释和发音 mp3 保存到了本地 sqlite。有了它不需要联网就可以查单词。楼主要不要?

  • 在 erb 中使用 hash,在生成的 HTML 中,多了这个 hash 本身的输出 at March 07, 2016

    我写错了。在第二个错误中,并不是多出了一个 one 的输出,而是多出了一整个 list 的输出

  • 学驾照有用吗? at January 17, 2016

    我工作了 2 年半,一直想考驾照,没时间。无奈,年前辞职,就是为了考驾照。工作之后,再去花大量时间去学东西,是很不容易的一件事

  • 黑 C++ 黑的惨绝人寰啊,我都笑死了 at January 02, 2016

    身为 C++ 程序员,看完根本笑不出来

  • 使用 passenger-install-nginx-module 安装 nginx 后无法使用 nginx at January 02, 2016

    https://ruby-china.org/wiki/mac-nginx-passenger-rails 你看看,是否在步骤二的时候选择了/opt/nginx 路径

  • 使用 passenger-install-nginx-module 安装 nginx 后无法使用 nginx at January 02, 2016

    默认安装到/opt 目录下,你估计忘了建软链接,应该自己手动建立软链接到/usr/bin 下

  • Windowns 10,昨天还在用 Ruby,今天 ruby.exe 突然找不到 at December 13, 2015

    #1 楼 @southwolf 已查看 Windows Defender 历史记录,无论是隔离的项目、允许的项目和检测到的所有项目,都是空的。没有发现

  • 五一 [郑州] Ruby 活动,郑州的 Rubyist,求约 at April 28, 2015

    竟然还有我的名字,激动的不能行啊。请问郑州本地有 Ruby 的工作吗?

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