Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Rei
@Rei
管理员
第 1 位会员 / 2011-10-28

[email protected]
深圳
182 篇帖子 / 9132 条回帖
727 关注者
0 正在关注
11 收藏
中下水平 Rails 程序员
打赏作者
GitHub Public Repos
  • writings 940

    [Closed] Source code of writings.io

  • alipay 732

    Unofficial alipay ruby gem

  • code_campo 291

    [Closed] Source code of http://codecampo.com

  • asciidoctor-pdf-cjk-ka... 101

    **no longer maintained**

  • asciidoctor-htmlbook 31

    Asciidoctor HTMLBook is an Asciidoctor backend for converting AsciiDoc documents to HTMLBook docu...

  • material-ui 17

  • rich-text-editor 12

  • htmlrenderer 12

  • rails-chatgpt-demo 8

  • rails-app 7

    A Rails project template lets me start new projects quickly.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 如何一个 VPS 上跑多个 Rails Application at 2014年12月15日

    #14 楼 @springwq a duplicate default server for 0.0.0.0:80

  • 如何一个 VPS 上跑多个 Rails Application at 2014年12月15日

    #12 楼 @springwq 可以写在同一个文件,也可以分开多个。

  • 我勒个去,Matz 大叔的新语言 Streem 竟然没人讲讲! at 2014年12月15日

    一年 Steam 经验。

  • 谷歌能用了! at 2014年12月15日

    http://v2ex.com/go/monthly

  • gem 目录下软件删除问题 at 2014年12月15日

    再试试 rvm cleanup

  • gem 目录下软件删除问题 at 2014年12月15日

    为什么不用 rvm uninstall/remove?

  • 在这种出现 routes 冲突时大家会怎样做呢? at 2014年12月15日

    我惯用的是 ~:username。

    我也好奇无前缀的网站要怎么解决用户名冲突:

    Github 只有不活动用户会被回收 https://help.github.com/articles/name-squatting-policy/

    Twitter: We reserve the right at all times (but will not have an obligation) to remove or refuse to distribute any Content on the Services, to suspend or terminate users, and to reclaim usernames without liability to you. https://twitter.com/tos

    Facebook: 如果您为您的帐户或主页选择了一个用户名或类似的标识符,我们将保留在适当的时候将其删除或回收的权利(例如某商标所有人投诉用户名与用户的实际名字相去甚远)。 https://www.facebook.com/legal/terms

  • 一个新轮子 at 2014年12月15日

    我现在更偏向针对云储存定制写逻辑。例如 S3 直接上传,七牛的图片裁剪和多媒体支持,多后端的上传库考虑的情况太多反而有些不顺手。

  • Shopify 原理 at 2014年12月15日

    就是共用一个数据库的,逻辑独立。

  • 我勒个去,Matz 大叔的新语言 Streem 竟然没人讲讲! at 2014年12月15日

    https://ruby-china.org/topics/23146

  • 如何选择部署工具 Capistrano 还是 Mina ? at 2014年12月15日

    进程管理我推荐用 foreman 导出系统管理配置(Ubuntu 是 Upstart)

    Managing and monitoring your Ruby application with Foreman and Upstart http://michael.vanrooijen.io/articles/2011/06/08-managing-and-monitoring-your-ruby-application-with-foreman-and-upstart/

  • 如何一个 VPS 上跑多个 Rails Application at 2014年12月15日

    #6 楼 @alixiaomiao 好,加上了。

  • 如何一个 VPS 上跑多个 Rails Application at 2014年12月14日

    #3 楼 @springwq 这就要用 nginx 的 upstream 了。

    upstream site-a {
      server 127.0.0.1:5000; // 假设 site-a 开了一个进程监听 5000
    }
    
    upstream site-b {
      server 127.0.0.1:6000; // 假设 site-b 开了一个进程监听 6000
    }
    
    server {
        listen 80;
        server_name site-a.com;
        root /var/www/site-a.com/current/public;
        try_files $uri/index.html $uri.html $uri @site-a;
    
        location @site-a {
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_redirect off;
            proxy_pass http://site-a;
       }
    }
    
    server {
        listen 80;
        server_name site-b.com;
        root /var/www/site-b.com/current/public;
        try_files $uri/index.html $uri.html $uri @site-b;
    
        location @site-b {
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_redirect off;
            proxy_pass http://site-b;
       }
    }
    

    thin 进程启动要另外管理。

  • 如何一个 VPS 上跑多个 Rails Application at 2014年12月14日
    server {
        listen 80;
        server_name site-a.com;
        root /var/www/site-a.com/current/public;
        passenger_enabled on;
    }
    
    server {
        listen 80;
        server_name site-b.com;
        root /var/www/site-b.com/current/public;
        passenger_enabled on;
    }
    
  • twitter 风格好友系统中黑名单功能如何设计 at 2014年12月11日

    新增一个黑名单表。

  • 北京 rubyconf 2014 的视频现在还没有放出来呀? at 2014年12月09日

    以后还是自录吧。

  • 非恶意检测 at 2014年12月09日

    #4 楼 @alsotang 我用我想到的注入方式试了试是无效了,如果还有可以发我邮箱,避免真空期被利用。感谢你的贡献。

  • 非恶意检测 at 2014年12月09日

    #4 楼 @alsotang 部署了,你再试试?

  • 非恶意检测 at 2014年12月09日

    #2 楼 @alsotang 你可以发 PR 了。

  • [已解决] 关于部署的小白问题 at 2014年12月08日

    #22 楼 @qingxp9 这应该是替换了 Ubuntu 官方源的 nginx。

  • 关于多选数据修改 at 2014年12月08日

    #2 楼 @a4652097 用语言清晰描述你的问题。

  • 关于多选数据修改 at 2014年12月08日

    我有一张 orders 表 => 表结构是什么? 有一个全选功能 => 全选什么? 再对此订单进行操作该怎么写呢?=> 什么操作?

  • rails 的 helper 中怎么获取当前服务器的 ip 或者 hostname? at 2014年12月08日

    我试了 helper 里面可以用 request.ip()。

  • 支付宝 API 向导 (Ruby 版),以及开源一个支付宝 gem at 2014年12月08日

    #47 楼 @robertyu 我没看到有这个 API,如果发现了请告诉我。

  • 这个文件应该放到哪里执行呢? at 2014年12月08日

    如果要写成独立脚本,require 需要一个绝对路径:

    # 假如放在 script/ 目录
    require File.expand_path('../../config/environment', __FILE__)
    
  • 这个文件应该放到哪里执行呢? at 2014年12月08日

    去掉 require

    rails runner path/to/filename.rb
    

    详细使用说明看

    rails runner
    
  • 越做产品,越觉得做产品难 at 2014年12月08日

    #13 楼 @huobazi It doesn't matter.

    https://payments.discourse.org/buy/#customers

  • 什么情况下不使用 turbolinks? at 2014年12月07日

    Why is it so many programmers love shitting on the hard work of other programmers? Most people are trying their best to build cool stuff.

    — Robin Ward (@eviltrout) 2014 年 11 月 19 日

    @eviltrout I’ve been guilty of it before (trolling turbolinks comes to mind) – gonna make an effort to stop

    — Robin Ward (@eviltrout) 2014 年 11 月 19 日

  • 什么情况下不使用 turbolinks? at 2014年12月07日

    如果你问这个问题,那么最好不用。

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