# 在子域名之间移动 Discourse——这会奏效吗？

**URL:** https://meta.discourse.org/t/move-discourse-between-subdomains-will-this-work/144561
**Category:** Support
**Created:** [2020年三月17日 09:13 UTC](https://meta.discourse.org/t/move-discourse-between-subdomains-will-this-work/144561 "2020-03-17T09:13:42Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![DBHacker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dbhacker/32/173072_2.png) [@DBHacker](https://meta.discourse.org/u/DBHacker)
#### Post date: [2020年三月17日 12:34 UTC](https://meta.discourse.org/t/move-discourse-between-subdomains-will-this-work/144561/4 "2020-03-17T12:34:39Z")

</div>

> [@DBHacker](#):
>
> /usr/local/lib/ruby/site\_ruby/2.6.0/rubygems/core\_ext/kernel\_require.rb:92:in `require’: 无法加载文件 – thor (LoadError)

这个方法有效：

```plaintext
su discourse -c 'bundle exec script/discourse remap //discourse-test.example-domain.com //talktime.example-domain.com

```

……运行正常……

但在恢复过程中，头像没有迁移过来（我们在备份时选择了包含图片）。

更新：

我们通过将服务器 1 的以下目录中的图片迁移到服务器 2，使头像正常工作：

```plaintext
/var/discourse/shared/standalone/uploads/defaults

```

---

_[View the full topic](https://meta.discourse.org/t/move-discourse-between-subdomains-will-this-work/144561)._
