<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Ruby China 社区 Homeland 节点</title>
    <link>https://ruby-china.org/</link>
    <description>Ruby China 社区 Homeland 节点最新发帖。</description>
    <item>
      <title>每个节点页面的讨论主题数不统计，这个是 bug 吗？</title>
      <description>&lt;p&gt;一直显示 0，节点下面有多少主题都是 0？？。。。&lt;/p&gt;</description>
      <author>kentaro</author>
      <pubDate>Tue, 18 Feb 2025 12:14:23 +0800</pubDate>
      <link>https://ruby-china.org/topics/44058</link>
      <guid>https://ruby-china.org/topics/44058</guid>
    </item>
    <item>
      <title>想请问一下，如何象 rubychina 这样在边栏调用活跃会员列表呢？</title>
      <description>&lt;p&gt;要写什么样的 html 才可以实现吗？谢谢&lt;/p&gt;</description>
      <author>kentaro</author>
      <pubDate>Mon, 17 Feb 2025 14:07:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/44054</link>
      <guid>https://ruby-china.org/topics/44054</guid>
    </item>
    <item>
      <title>homeland 部署文档可以更新下吗</title>
      <description>&lt;p&gt;部署文档还是 3.8 版本的，我昨晚折腾了一晚上还是没有成功，现在登陆就会跳转到 &lt;a href="https://127.0.0.1:7000" rel="nofollow" target="_blank"&gt;https://127.0.0.1:7000&lt;/a&gt; ，这是怎么回事？&lt;/p&gt;</description>
      <author>olivetree123</author>
      <pubDate>Sat, 28 Dec 2024 16:48:29 +0800</pubDate>
      <link>https://ruby-china.org/topics/43991</link>
      <guid>https://ruby-china.org/topics/43991</guid>
    </item>
    <item>
      <title>求助我用的是 2 年前版本  oauth 认证总是 401</title>
      <description>&lt;p&gt;我点开认证后的跳转过去总是  总是 401&lt;/p&gt;</description>
      <author>sdfsd</author>
      <pubDate>Wed, 08 Nov 2023 15:54:56 +0800</pubDate>
      <link>https://ruby-china.org/topics/43462</link>
      <guid>https://ruby-china.org/topics/43462</guid>
    </item>
    <item>
      <title>本地想把 homeland 项目跑起来，但是报错了</title>
      <description>&lt;p&gt;ruby 3.0.3 rails 7.0.6&lt;/p&gt;

&lt;p&gt;用 docker 安装了 postgres，可以正确连接，我想用 rails s 启动起来，报错：&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;WARNING: table: "settings" does not exist or not database connection, `Setting.rack_attack` fallback to returns the default value.
WARNING: table: "settings" does not exist or not database connection, `Setting.rack_attack` fallback to returns the default value.
--&amp;gt; /Users/jieyi/workspace/study/homeland/app/models/user.rb

syntax error, unexpected ')'

    5  class User &amp;lt; ApplicationRecord
❯  67    def self.find_by_email(email)
❯  68      fetch_by_uniq_keys(email:)
❯  69    end
  168  end

syntax error, unexpected ')'
syntax error, unexpected end-of-input, expecting `end'

    5  class User &amp;lt; ApplicationRecord
❯  71    def self.find_by_login!(slug)
❯  72      find_by_login(slug) || raise(ActiveRecord::RecordNotFound.new(slug:))
❯  73    end
  168  end

--&amp;gt; /Users/jieyi/workspace/study/homeland/app/models/user.rb

syntax error, unexpected ')'

    5  class User &amp;lt; ApplicationRecord
❯  67    def self.find_by_email(email)
❯  68      fetch_by_uniq_keys(email:)
❯  69    end
  168  end

syntax error, unexpected ')'
syntax error, unexpected end-of-input, expecting `end'

    5  class User &amp;lt; ApplicationRecord
❯  71    def self.find_by_login!(slug)
❯  72      find_by_login(slug) || raise(ActiveRecord::RecordNotFound.new(slug:))
❯  73    end
  168  end

--&amp;gt; /Users/jieyi/workspace/study/homeland/app/models/user.rb

syntax error, unexpected ')'

    5  class User &amp;lt; ApplicationRecord
❯  67    def self.find_by_email(email)
❯  68      fetch_by_uniq_keys(email:)
❯  69    end
  168  end

syntax error, unexpected ')'
syntax error, unexpected end-of-input, expecting `end'

    5  class User &amp;lt; ApplicationRecord
❯  71    def self.find_by_login!(slug)
❯  72      find_by_login(slug) || raise(ActiveRecord::RecordNotFound.new(slug:))
❯  73    end
  168  end

/Users/jieyi/.rvm/gems/ruby-3.0.3/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require': /Users/jieyi/workspace/study/homeland/app/models/user.rb:68: syntax error, unexpected ')' (SyntaxError)
    fetch_by_uniq_keys(email:)
                             ^
/Users/jieyi/workspace/study/homeland/app/models/user.rb:72: syntax error, unexpected ')'
...cord::RecordNotFound.new(slug:))
...                              ^
/Users/jieyi/workspace/study/homeland/app/models/user.rb:168: syntax error, unexpected end-of-input, expecting `end'
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>xinyuanjieyi</author>
      <pubDate>Mon, 11 Sep 2023 15:07:05 +0800</pubDate>
      <link>https://ruby-china.org/topics/43324</link>
      <guid>https://ruby-china.org/topics/43324</guid>
    </item>
    <item>
      <title>Homeland 提交历史中，包含一个非法的 email 地址，导致代码无法 push 到远程仓库</title>
      <description>&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/daqing/1723f387-a5a2-40ff-918a-9f473e6b0535.png!large" title="" alt=""&gt;
&lt;img src="https://l.ruby-china.com/photo/daqing/ffc46456-78fb-4b37-950e-ba5c094d2348.png!large" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>daqing</author>
      <pubDate>Mon, 01 May 2023 16:45:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/43043</link>
      <guid>https://ruby-china.org/topics/43043</guid>
    </item>
    <item>
      <title>docker 镜像安装 homeland 3.8-latest  一路操作后无法访问</title>
      <description>&lt;p&gt;主机位于内网 IP：192.168.3.105&lt;/p&gt;

&lt;p&gt;按照说明写的 app.local.env&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;RAILS_ENV=production
# RAILS_LOG_TO_STDOUT=true

# Database
DATABASE_URL=postgres://postgres:@postgresql:5432/homeland
# DATABASE_POOL=64
REDIS_URL=redis://redis:6379/1

# App Config
app_name=RKKS
https=false
domain=localhost
admin_emails=shakenbaby216@126.com
modules=home,topic,press,site,note
asset_host=
upload_provider=file
upload_host=
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;完成后
&lt;code&gt;make install&lt;/code&gt;
拉取安装数据库和主镜像等&lt;/p&gt;

&lt;p&gt;&lt;code&gt;make start&lt;/code&gt;
拉取了 Caddy 并启动&lt;/p&gt;

&lt;p&gt;&lt;code&gt;make status&lt;/code&gt;&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;       Name                      Command                                             State                         Ports

homeland_app                 /home/app/homeland/bin/doc ...     Up                         0.0.0.0:32812-&amp;gt;7000/tcp
homeland_app_backup   bundle exec puma -C config ...          Up                         0.0.0.0:32814-&amp;gt;7001/tcp
homeland_caddy             caddy run --config /etc/ca ...             Up                         2019/tcp, 0.0.0.0:443-&amp;gt;443/tcp, 0.0.0.0:80-&amp;gt;80/tcp
homeland_postgresql     docker-entrypoint.sh postgres           Up                        0.0.0.0:32809-&amp;gt;5432/tcp
homeland_redis              docker-entrypoint.sh redis ...              Up                        0.0.0.0:32810-&amp;gt;6379/tcp
homeland_web               /etc/nginx/start                                   Up                        0.0.0.0:8080-&amp;gt;80/tcp
homeland_worker          bundle exec sidekiq -C con ...              Up

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;以上容器中，最后一个 homeland_worker 没有端口显示正常么？
访问 192.168.3.105 无响应。求大神帮忙解决。系统为 ubuntu14.04。&lt;/p&gt;

&lt;p&gt;我是全新系统安装。之前用 centos7 也这样，已经折腾 3 天了。
求指教，是不是我错过了哪一步？&lt;/p&gt;

&lt;p&gt;git clone &lt;a href="https://github.com/ruby-china/homeland-docker.git" rel="nofollow" target="_blank"&gt;https://github.com/ruby-china/homeland-docker.git&lt;/a&gt;  的 master 分支&lt;/p&gt;</description>
      <author>shakenbaby216</author>
      <pubDate>Sat, 14 May 2022 04:03:08 +0800</pubDate>
      <link>https://ruby-china.org/topics/42392</link>
      <guid>https://ruby-china.org/topics/42392</guid>
    </item>
    <item>
      <title>客户端发帖出现 401 错误</title>
      <description>&lt;p&gt;401 Unauthorized。如何修复？&lt;/p&gt;</description>
      <author>akai76</author>
      <pubDate>Sat, 22 Jan 2022 12:01:22 +0800</pubDate>
      <link>https://ruby-china.org/topics/42097</link>
      <guid>https://ruby-china.org/topics/42097</guid>
    </item>
    <item>
      <title>请问 Homeland 如何把首页直接展示为【社区】？就像 ruby china 这样</title>
      <description>&lt;p&gt;我现在部署了 Homeland 3.8.4，似乎没有找到可以把首页配置为【社区】页面的地方？&lt;/p&gt;

&lt;p&gt;大佬支支招啊&lt;/p&gt;</description>
      <author>daqing</author>
      <pubDate>Wed, 17 Nov 2021 23:21:42 +0800</pubDate>
      <link>https://ruby-china.org/topics/41890</link>
      <guid>https://ruby-china.org/topics/41890</guid>
    </item>
    <item>
      <title>使用 docker 安装最新版 homeland，如何让域名和子域名都能访问？</title>
      <description>&lt;p&gt;使用 docker 安装最新版 homeland，如何让域名和子域名都能访问？比如 &lt;a href="http://www.aa.com" rel="nofollow" target="_blank" title=""&gt;www.aa.com&lt;/a&gt; &amp;amp; aa.com 折腾了好几天了，只能一个域名访问。&lt;/p&gt;</description>
      <author>mettee</author>
      <pubDate>Wed, 03 Nov 2021 21:29:15 +0800</pubDate>
      <link>https://ruby-china.org/topics/41847</link>
      <guid>https://ruby-china.org/topics/41847</guid>
    </item>
    <item>
      <title>Homeland 最新代码，先 clone 后 push 报错</title>
      <description>&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Enumerating objects: 42384, done.
Counting objects: 100% (42384/42384), done.
Delta compression using up to 8 threads
Compressing objects: 100% (11547/11547), done.
remote: error: object 0c804057994a56a1d649653675365b3ad12d7ad8: badName: invalid author/committer line - bad name
remote: fatal: fsck error in packed object
error: remote unpack failed: index-pack abnormal exit
To github.com:daqing/xxx.git
 ! [remote rejected]   main -&amp;gt; main (failed)
error: failed to push some refs to 'github.com:daqing/xxx.git'
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>daqing</author>
      <pubDate>Thu, 28 Oct 2021 00:03:14 +0800</pubDate>
      <link>https://ruby-china.org/topics/41811</link>
      <guid>https://ruby-china.org/topics/41811</guid>
    </item>
    <item>
      <title>请问 Homeland 把社区设为首页后如何去掉浏览器标签上的 “社区 ."字符</title>
      <description>&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/luojiangsong/a0483277-57fd-4a67-85b7-625a56738dd2.png!large" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;比如我的网站叫”东荆社区“，在控制中心把社区设置为首页后浏览器标签上会显示”社区 . 东荆社区“，即在网站名称前面会多加上”社区 .“字符。请问是否能像 Ruby-China 一样直接显示网站名就可以了，去点前面的”社区 ."字符。&lt;/p&gt;

&lt;p&gt;最终需要实现的效果：
&lt;img src="https://l.ruby-china.com/photo/luojiangsong/8d4e4d9b-b871-4ed6-a8c5-027677e56f8d.png!large" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>luojiangsong</author>
      <pubDate>Tue, 24 Aug 2021 21:20:35 +0800</pubDate>
      <link>https://ruby-china.org/topics/41612</link>
      <guid>https://ruby-china.org/topics/41612</guid>
    </item>
    <item>
      <title>反馈问题</title>
      <description>&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/filetype/7f4048a0-e0c9-42b5-84ad-34a4ac8340fb.png!large" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>filetype</author>
      <pubDate>Sun, 22 Aug 2021 08:49:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/41604</link>
      <guid>https://ruby-china.org/topics/41604</guid>
    </item>
    <item>
      <title>目前 webp 的头像文件格式在 catalina 系统的 Safari 下无法显示</title>
      <description>&lt;p&gt;查了一下，webp 方式虽然 Safari 14 是支持了，但是仅限 Big Sur 系统，&lt;a href="https://github.com/ruby-china/homeland/blob/main/app/helpers/users_helper.rb#L48" rel="nofollow" target="_blank" title=""&gt;看了一下代码&lt;/a&gt;，好像这个也不算是 homeland 的 bug，可能应该算是阿里云 OSS 的 Bug？&lt;/p&gt;</description>
      <author>ericguo</author>
      <pubDate>Sun, 01 Aug 2021 16:08:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/41512</link>
      <guid>https://ruby-china.org/topics/41512</guid>
    </item>
    <item>
      <title>i18n 翻译缺失</title>
      <description>&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/filetype/f9a07fab-7ef2-441c-bc0f-b373b7442096.png!large" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>filetype</author>
      <pubDate>Fri, 30 Jul 2021 13:31:14 +0800</pubDate>
      <link>https://ruby-china.org/topics/41507</link>
      <guid>https://ruby-china.org/topics/41507</guid>
    </item>
    <item>
      <title>Homeland 怎么设置首页为社区/topics 页面</title>
      <description>&lt;p&gt;Homeland 怎么设置首页为社区/topics 页面，不想要首页了想直接把社区/topics 页面做首页，请问我需要怎么去做。&lt;/p&gt;</description>
      <author>LinkdFun</author>
      <pubDate>Tue, 20 Jul 2021 10:31:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/41490</link>
      <guid>https://ruby-china.org/topics/41490</guid>
    </item>
    <item>
      <title>请各位不吝赐教  我在做 homeland 二次开发 , homeland 自带有点击网页过渡效果么,类似菊花旋转中</title>
      <description>&lt;p&gt;请各位不吝赐教  我在做  homeland 二次开发 , homeland 自带有网页跳转过渡效果么，类似菊花旋转中 &lt;a href="/huacnlee" class="user-mention" title="@huacnlee"&gt;&lt;i&gt;@&lt;/i&gt;huacnlee&lt;/a&gt; &lt;a href="/jasl" class="user-mention" title="@jasl"&gt;&lt;i&gt;@&lt;/i&gt;jasl&lt;/a&gt;   &lt;/p&gt;</description>
      <author>111ccc</author>
      <pubDate>Mon, 12 Jul 2021 13:39:13 +0800</pubDate>
      <link>https://ruby-china.org/topics/41465</link>
      <guid>https://ruby-china.org/topics/41465</guid>
    </item>
    <item>
      <title>搭建后，发现酷站页面的网站 ICON 连接都是 ruby-china.org 这个域名下的，这个怎么切到自己的网站？</title>
      <description>&lt;p&gt;如下图所示：&lt;/p&gt;

&lt;p&gt;&lt;img src="https://l.ruby-china.com/photo/beyondyuqifeng/39b2d032-556b-4188-ba0b-11f87548a845.png!large" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>beyondyuqifeng</author>
      <pubDate>Fri, 28 May 2021 17:53:15 +0800</pubDate>
      <link>https://ruby-china.org/topics/41313</link>
      <guid>https://ruby-china.org/topics/41313</guid>
    </item>
    <item>
      <title>邮件发出的密码重置连接是 https 的，怎么设置成 http 的连接？</title>
      <description>&lt;p&gt;因为站点没有部署 https，所以，密码重置的链接也是 https 的，导致直接点击连接是无法访问，这个看需要怎么解决？&lt;/p&gt;

&lt;p&gt;&lt;a href="/huacnlee" class="user-mention" title="@huacnlee"&gt;&lt;i&gt;@&lt;/i&gt;huacnlee&lt;/a&gt; &lt;/p&gt;</description>
      <author>beyondyuqifeng</author>
      <pubDate>Mon, 17 May 2021 14:16:49 +0800</pubDate>
      <link>https://ruby-china.org/topics/41274</link>
      <guid>https://ruby-china.org/topics/41274</guid>
    </item>
    <item>
      <title>用 homeland 搭建了一个小站，启动都正常，就是无法登录，这个是咋回事？</title>
      <description>&lt;p&gt;域名：hit.icu&lt;/p&gt;
&lt;h2 id="现在的情况："&gt;现在的情况：&lt;/h2&gt;
&lt;p&gt;可以注册，也应该注册成功了，但是点击登录就直接跳转到首页，还是显示没有登录状态&lt;/p&gt;

&lt;p&gt;求助一下！&lt;/p&gt;

&lt;hr&gt;
&lt;h3 id="更新信息："&gt;更新信息：&lt;/h3&gt;
&lt;p&gt;这个和设置了 https 有关，设置了 https 后就不能登录&lt;/p&gt;
&lt;h2 id="后台报错："&gt;后台报错：&lt;/h2&gt;
&lt;p&gt;SSL_connect returned=1 errno=0 state=error: dh key too small&lt;/p&gt;

&lt;p&gt;&lt;a href="/huacnlee" class="user-mention" title="@huacnlee"&gt;&lt;i&gt;@&lt;/i&gt;huacnlee&lt;/a&gt; 大佬能能看看这是啥问题么？&lt;/p&gt;

&lt;p&gt;&lt;del&gt;看了半天，发现邮件也发不了，貌似也是这个报错。。。&lt;/del&gt;&lt;/p&gt;
&lt;h2 id="部署环境："&gt;部署环境：&lt;/h2&gt;
&lt;p&gt;没有使用 caddy，直接注释掉了，使用的 nginx 进行反向代理&lt;/p&gt;

&lt;p&gt;服务器环境：centOS 7.5&lt;/p&gt;

&lt;p&gt;5-17 更新：&lt;/p&gt;

&lt;p&gt;邮件问题已经解决&lt;/p&gt;

&lt;p&gt;但是 https 下的登录问题，还是没有解决&lt;/p&gt;</description>
      <author>beyondyuqifeng</author>
      <pubDate>Fri, 14 May 2021 23:51:03 +0800</pubDate>
      <link>https://ruby-china.org/topics/41263</link>
      <guid>https://ruby-china.org/topics/41263</guid>
    </item>
  </channel>
</rss>
