<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>steveltn (steveLTN)</title>
    <link>https://ruby-china.org/steveltn</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>2017 年想实现 Web 内的聊天，用什么技术方案比较好？</title>
      <description>&lt;p&gt;如题，现在有个 Rails app，想做类似 Gmail 或 Facebook 里的聊天功能。目前同时在线大约 50 人左右，不过希望将来能方便的 scale。&lt;/p&gt;

&lt;p&gt;目前看了几个方案：&lt;/p&gt;

&lt;p&gt;1) ActionCable 
这个方案实现起来应该是最简单的。但是考虑 scalability，不知道将来能否方便的 scale。另外，ActionCable 的信息可能会出现顺序错乱的问题。&lt;/p&gt;

&lt;p&gt;2) RabbitMQ
性能应该没问题，维护起来可能要比方案 (1) 麻烦一点。&lt;/p&gt;

&lt;p&gt;3) 现成的服务
看到一个 Twilio。比较担心的问题就是在墙外，是不是能在墙内可靠使用？没有找到国内的类似服务。&lt;/p&gt;

&lt;p&gt;4) Faye
这个是可以自己 host server 的，不知道是不是比 RabbitMQ 好用？&lt;/p&gt;

&lt;p&gt;有有经验的同学分享一点心得吗？谢谢。&lt;/p&gt;</description>
      <author>steveltn</author>
      <pubDate>Sun, 22 Jan 2017 04:27:26 +0800</pubDate>
      <link>https://ruby-china.org/topics/32190</link>
      <guid>https://ruby-china.org/topics/32190</guid>
    </item>
    <item>
      <title>弄了个 Nginx 的 docker 镜像，自动通过 Let's Encrypt 配置 SSL</title>
      <description>&lt;p&gt;因为公司里有一些需要部署多次的小 app，以前一直用 HTTP。现在有了 Let's Encrypt，就想着全都 SSL 化了。可是一个个配置起来还是有点麻烦，就弄了个 Docker Container.&lt;/p&gt;

&lt;p&gt;虽然是个 Container，但其实后面的 app 不管用什么方式部署都可以，只要通过 ENV 设置一下转发就可以了。&lt;/p&gt;

&lt;p&gt;发出来给大家玩玩：&lt;a href="https://github.com/SteveLTN/nginx-acme" rel="nofollow" target="_blank"&gt;https://github.com/SteveLTN/nginx-acme&lt;/a&gt;&lt;/p&gt;</description>
      <author>steveltn</author>
      <pubDate>Fri, 18 Dec 2015 05:10:22 +0800</pubDate>
      <link>https://ruby-china.org/topics/28446</link>
      <guid>https://ruby-china.org/topics/28446</guid>
    </item>
    <item>
      <title>用 Docker 部署 Rails app</title>
      <description>&lt;p&gt;前段时间闲着没事做研究了一下 Docker 这个东西，于是写了篇 &lt;a href="http://steveltn.me/blog/2014/03/15/deploy-rails-applications-using-docker/" rel="nofollow" target="_blank" title=""&gt;blog&lt;/a&gt;。这是一篇简单的 Tutorial，我想阅读以后应该能对 Docker 是什么，大致怎么用有一点了解。&lt;/p&gt;

&lt;p&gt;前段时间 &lt;a href="http://timo.piqiu.me" rel="nofollow" target="_blank" title=""&gt;Timo&lt;/a&gt; 同学把他&lt;a href="http://timo.piqiu.me/2014/05/26/%E4%BD%BF%E7%94%A8docker%E5%8F%91%E5%B8%83rails%E7%A8%8B%E5%BA%8F/" title=""&gt;翻译成了中文&lt;/a&gt;，我才想起来居然还没有分享到 Ruby-China 过。&lt;/p&gt;

&lt;p&gt;感觉 Docker 非常有意思啊，大规模部署会非常方便，再加上 &lt;a href="http://www.tutum.co" rel="nofollow" target="_blank" title=""&gt;Tutum&lt;/a&gt; 这样的 docker hosting service 和专门为 Docker 打造的 Linux 发行版 &lt;a href="https://coreos.com" rel="nofollow" target="_blank" title=""&gt;CoreOS&lt;/a&gt;，我觉得很有可能取代现在的 application 部署方式。&lt;/p&gt;</description>
      <author>steveltn</author>
      <pubDate>Sun, 01 Jun 2014 03:42:40 +0800</pubDate>
      <link>https://ruby-china.org/topics/19664</link>
      <guid>https://ruby-china.org/topics/19664</guid>
    </item>
    <item>
      <title>大家是怎么测试 Rails 4 的 Strong Parameters 的？</title>
      <description>&lt;p&gt;其实以前的 attr_accessible 我也不知道如何去测试，大家是在 integration_test 里面执行一个 POST，然后手动加入一个不应该被 mass-assign 的 parameter 吗？&lt;/p&gt;</description>
      <author>steveltn</author>
      <pubDate>Fri, 12 Jul 2013 11:57:06 +0800</pubDate>
      <link>https://ruby-china.org/topics/12454</link>
      <guid>https://ruby-china.org/topics/12454</guid>
    </item>
    <item>
      <title>ruby2.0, bundle install 的时候说 rubygems.org SSL 证书错误</title>
      <description>&lt;p&gt;$ bundle install
Fetching source index from &lt;a href="https://rubygems.org/" rel="nofollow" target="_blank"&gt;https://rubygems.org/&lt;/a&gt;
Resolving dependencies...
Could not verify the SSL certificate for &lt;a href="https://rubygems.org/" rel="nofollow" target="_blank"&gt;https://rubygems.org/&lt;/a&gt;.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see bit.ly/ssl-certs. To connect without
using SSL, edit your Gemfile sources and change 'https' to 'http'.&lt;/p&gt;

&lt;p&gt;用 1.9.3 完全正常
按照&lt;a href="http://railsapps.github.com/openssl-certificate-verify-failed.html" rel="nofollow" target="_blank"&gt;http://railsapps.github.com/openssl-certificate-verify-failed.html&lt;/a&gt;的做法，无效
现在 bundler 是 1.3.1, gem 版本是 2.0.2, OS X 上 openssl 版本是 OpenSSL 1.0.1e。&lt;/p&gt;

&lt;p&gt;虽然可以把 https 改成 http，但总觉得这不是正确的方法啊！&lt;/p&gt;</description>
      <author>steveltn</author>
      <pubDate>Fri, 08 Mar 2013 05:10:39 +0800</pubDate>
      <link>https://ruby-china.org/topics/9240</link>
      <guid>https://ruby-china.org/topics/9240</guid>
    </item>
  </channel>
</rss>
