<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>shell</title>
    <link>https://ruby-china.org/shell</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>请教前后台部署的方案</title>
      <description>&lt;p&gt;现在有个需求是这样的：一个是主站系统，另外一个是后台系统（给员工用的），这两个系统需要绑定不同的域名。&lt;/p&gt;

&lt;p&gt;我的想法有两个：
1.做一个 Web App，因为数据主要是主站产生，所以使用一个数据库，方便开发。
   但是这样的话我就不知道怎么把两个域名分给同一个 App，是根据路由来分配吗？
2.做两个 Web App，共用一个数据库，可能开发起来会有一些坑，但是部署起来会很方便。&lt;/p&gt;

&lt;p&gt;本人是从 PHP 转过来的，上面两个思路可能有点 PHP 化了，对 Rails 的部署不是很熟，对于我这种情况应该有更好的解决方法，希望大家能够指点一二。&lt;/p&gt;</description>
      <author>shell</author>
      <pubDate>Tue, 29 Jul 2014 12:25:45 +0800</pubDate>
      <link>https://ruby-china.org/topics/20730</link>
      <guid>https://ruby-china.org/topics/20730</guid>
    </item>
    <item>
      <title>请问设计 API 用哪种框架比较好？</title>
      <description>&lt;p&gt;搜到的有 Grape：&lt;a href="https://github.com/intridea/grape" rel="nofollow" target="_blank"&gt;https://github.com/intridea/grape&lt;/a&gt;
             RocketPants：&lt;a href="https://github.com/filtersquad/rocket_pants" rel="nofollow" target="_blank"&gt;https://github.com/filtersquad/rocket_pants&lt;/a&gt; 
             ActiveResource：&lt;a href="https://github.com/rails/activeresource" rel="nofollow" target="_blank"&gt;https://github.com/rails/activeresource&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;这三个各有什么优缺点？都适用哪种场景？&lt;/p&gt;</description>
      <author>shell</author>
      <pubDate>Fri, 26 Jul 2013 11:45:23 +0800</pubDate>
      <link>https://ruby-china.org/topics/12796</link>
      <guid>https://ruby-china.org/topics/12796</guid>
    </item>
  </channel>
</rss>
