<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>v2up (v2up)</title>
    <link>https://ruby-china.org/v2up</link>
    <description>👨‍🚀 v2up = way to up</description>
    <language>en-us</language>
    <item>
      <title>有人用 Kamal 在单个 VPS 上部署过多个项目吗？</title>
      <description>&lt;p&gt;在单个服务器上使用 Kamal 部署多个项目时，每个项目都会启动一个独立的 Traefik 实例？能不能让多个项目共享一个 Traefik 实例？有没有过来人分享一下。&lt;/p&gt;</description>
      <author>v2up</author>
      <pubDate>Wed, 11 Oct 2023 16:43:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/43382</link>
      <guid>https://ruby-china.org/topics/43382</guid>
    </item>
    <item>
      <title>如何做一个可插拔的内容安全审核系统？</title>
      <description>&lt;p&gt;内容安全审核应该是近几年国内 UGC 产品逃不掉的课题，好像 Ruby China 也经常遇到这样的困扰，刚开始规模影响力不大的时候，人工和简单的规则就可以解决，但稍微上一些量之后，就得考虑用机器预审然后根据情况人工介入，这一点大小厂没啥区别，可能唯一的区别就是精度和打击力度的问题。&lt;/p&gt;

&lt;p&gt;既然是个通用课题，我就在想能不能把这个业务抽象成一个相对通用一点的 Gem 包，之前用过&lt;a href="/huacnlee" class="user-mention" title="@huacnlee"&gt;&lt;i&gt;@&lt;/i&gt;huacnlee&lt;/a&gt; 的&lt;a href="https://github.com/rails-engine/audit-log" rel="nofollow" target="_blank" title=""&gt;audit-log&lt;/a&gt;，&lt;a href="https://github.com/rails-engine/exception-track" rel="nofollow" target="_blank" title=""&gt;exception-track&lt;/a&gt;，以及 ankane 的&lt;a href="https://github.com/ankane/blazer" rel="nofollow" target="_blank" title=""&gt;blazer&lt;/a&gt;感觉非常简单实用，而且还方便复用在不同项目上，只需要按说明配置参数根据约定使用就能直接轻松集成到现有的应用中还不影响到其他业务。&lt;/p&gt;

&lt;p&gt;初步的思路是直接基于云服务商提供的各种内容安全审查 API 做整合，重点把调用流程和管理部分做好，尽可能的简单通用，大概 3 个部分：&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;检测，类似  pundit  中的 &lt;code&gt;authorize User&lt;/code&gt; 这种显示调用，放在 UGC 提交之后，保存之前。&lt;/li&gt;
&lt;li&gt;报警记录，触发规则或被拦截之后，记录好参数信息、用户信息，给到相应通知。&lt;/li&gt;
&lt;li&gt;管理，基于报警记录，人工检测核对问题内容，做出类似忽略、隐藏或者删除等操作。&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;大概想到这么多，不知道大家是怎么搞定这个问题的？&lt;/p&gt;</description>
      <author>v2up</author>
      <pubDate>Sat, 10 Sep 2022 01:41:57 +0800</pubDate>
      <link>https://ruby-china.org/topics/42644</link>
      <guid>https://ruby-china.org/topics/42644</guid>
    </item>
    <item>
      <title>PostgreSQL 有没有能定时镜像线上数据到测试数据库的工具</title>
      <description>&lt;p&gt;计划把线上的数据脱敏后同步到测试环境一份儿，想请教各位 postgresql 有没有类似的工具，对实时性要求不高，能周期执行就行，比如定个时，每晚执行一次。&lt;/p&gt;</description>
      <author>v2up</author>
      <pubDate>Sun, 07 Nov 2021 20:01:19 +0800</pubDate>
      <link>https://ruby-china.org/topics/41854</link>
      <guid>https://ruby-china.org/topics/41854</guid>
    </item>
    <item>
      <title>Hey.com 的黑魔法来了 hotwire.dev</title>
      <description>&lt;p&gt;跟预告的差不多，一套组合拳分别是 Turbo + Stimulus  + STRADA，文档和视频都有了，不过 STRADA 现在只放出来一个概念，得 2021 才能正式出来。这个圣诞料挺足。&lt;/p&gt;

&lt;p&gt;&lt;a href="https://hotwire.dev/" rel="nofollow" target="_blank" title=""&gt;官方地址&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/2020/f422471b-859c-4bec-a8cc-88f196513ef8.png!large" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>v2up</author>
      <pubDate>Wed, 23 Dec 2020 01:00:22 +0800</pubDate>
      <link>https://ruby-china.org/topics/40732</link>
      <guid>https://ruby-china.org/topics/40732</guid>
    </item>
    <item>
      <title>大家有遇到使用 react-rails 渲染时闪一下的问题吗？</title>
      <description>&lt;p&gt;rails 6 中用了 &lt;code&gt;reactjs/react-rails&lt;/code&gt; 这个 gem，使用没问题，但发现在渲染时候调用 &lt;code&gt;react_component&lt;/code&gt;加载 react 的部分会比 erb 中的其它部分晚加载出来，还会闪一下。我猜测是这部分 js 代码加载出来还要在客户端上执行一下，所以时间上会比 erb 的其它部分慢，大家有遇到类似问题吗？有啥好的解决思路吗？&lt;/p&gt;</description>
      <author>v2up</author>
      <pubDate>Tue, 24 Nov 2020 14:32:04 +0800</pubDate>
      <link>https://ruby-china.org/topics/40605</link>
      <guid>https://ruby-china.org/topics/40605</guid>
    </item>
    <item>
      <title>Ruby 3.0.0-preview 版发布了</title>
      <description>&lt;p&gt;hn 上看到 ruby 3.0.0 的 preview 版发布了，不少新特性，开始期待用到线上了，不知道有尝鲜的没？&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.ruby-lang.org/en/news/2020/09/25/ruby-3-0-0-preview1-released/?hn=t" rel="nofollow" target="_blank"&gt;https://www.ruby-lang.org/en/news/2020/09/25/ruby-3-0-0-preview1-released/?hn=t&lt;/a&gt;&lt;/p&gt;</description>
      <author>v2up</author>
      <pubDate>Sat, 26 Sep 2020 11:14:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/40441</link>
      <guid>https://ruby-china.org/topics/40441</guid>
    </item>
  </channel>
</rss>
