# 새 서버로 클론; 도메인 변경; 로그인 매번 요구되는 새 주제

**URL:** <https://meta.discourse.org/t/clone-to-a-new-server-change-domain-new-topic-asking-for-login-everytime/382874>\
**Category:** Self-hosting\
**Created:** [9월 16, 2025, 7:50오후 UTC](https://meta.discourse.org/t/clone-to-a-new-server-change-domain-new-topic-asking-for-login-everytime/382874 "2025-09-16T19:50:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marlinhares](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marlinhares/32/521740_2.png) [@marlinhares](https://meta.discourse.org/u/marlinhares)\
**Post date:** [9월 16, 2025, 7:50오후 UTC](https://meta.discourse.org/t/clone-to-a-new-server-change-domain-new-topic-asking-for-login-everytime/382874/1 "2025-09-16T19:50:41Z")

</div>

안녕하세요, 디스코urses를 처음 사용해 봅니다.

환경을 복제(clone)해야 합니다.

다음과 같이 진행했습니다:

- discourse\_docker와 discourse\_volumes 디렉터리에서 rsync -a 실행
- 해당 디렉터리를 새 서버로 이동
- discourse\_docker/containers/app.yml 파일의 도메인 이름 변경
- 새 도메인에 대한 새 인증서를 생성하고, 인증서와 키를 discourse\_volumes/shared/standalone/ssl로 이동
- 새 서버에서 ./launcher rebuild app 실행

정상적으로 작동하며 모든 것이 정상으로 보입니다. 기존 주제에 답글을 달면 문제없이 작동합니다. 하지만 "새 주제"를 생성하면 로그인 페이지로 이동합니다.

어디서 잘못하고 있을까요? 어떤 힌트를 받을 수 있을까요?

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [9월 16, 2025, 9:24오후 UTC](https://meta.discourse.org/t/clone-to-a-new-server-change-domain-new-topic-asking-for-login-everytime/382874/2 "2025-09-16T21:24:34Z")

</div>

안전 모드에서도 그런 일이 발생합니까?

---

<div class="post-metadata">

**Author:** ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)\
**Post date:** [9월 17, 2025, 9:43오전 UTC](https://meta.discourse.org/t/clone-to-a-new-server-change-domain-new-topic-asking-for-login-everytime/382874/3 "2025-09-17T09:43:40Z")

</div>

기존 도메인 이름의 주제를 새 도메인 이름으로 매핑하려면 다른 작업을 수행해야 한다고 생각합니다.

> [@Discourse](#):
>
> ## 게시물 내 도메인 이름 재매핑
> 
> 기존 게시물들은 여전히 이전 도메인을 참조하고 있습니다.
> 
> 게시물 내의 이전 도메인 참조를 새 도메인으로 변경해야 합니다:
> 
> BEFORE
> 
> AFTER
> 
> ```plaintext
> ./launcher enter app
> 
> ```
> 
> 그 다음
> 
> ```plaintext
> discourse remap talk.foo.com talk.bar.com
> 
> ```
> 
> `discourse` 바이너리가 사용 불가능한 경우, Rake를 사용하여 rake 버전을 사용할 수 있습니다:
> 
> ```plaintext
> bundle exec rake posts:remap["talk.foo.com", "talk.bar.com"]
> 
> ```
> 
> 다음으로 마무리합니다:
> 
> ```plaintext
> rake posts:rebake
> 
> ```
> 
> 이것은 기존 게시물 내의 도메인 이름 재매핑을 보장하고, 필요에 따라 콘텐츠가 재생성되도록 합니다.

---

<div class="post-metadata">

**Author:** ![marlinhares](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marlinhares/32/521740_2.png) [@marlinhares](https://meta.discourse.org/u/marlinhares)\
**Post date:** [9월 17, 2025, 1:42오후 UTC](https://meta.discourse.org/t/clone-to-a-new-server-change-domain-new-topic-asking-for-login-everytime/382874/4 "2025-09-17T13:42:34Z")

</div>

이 정보에 대해 정말 감사드립니다.  
여러분의 도움으로 문제가 해결되었습니다.

안전 모드에서는 정상적으로 작동했습니다.

안전 모드를 종료한 후, 각 플러그인을 비활성화하면서 기능을 재테스트했습니다.

한 플러그인이 문제를 일으키고 있었습니다.

하지만 다행히도 다시 활성화했을 때 기능이 정상적으로 작동했습니다. 무슨 일이 있었는지 정확히 알 수 없었습니다. 아마도 비활성화했다가 다시 활성화하는 과정에서 백스테이지에서 리맵이 이루어진 것 같습니다.

문제 해결되었습니다.

---

<div class="post-metadata">

**Author:** ![marlinhares](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marlinhares/32/521740_2.png) [@marlinhares](https://meta.discourse.org/u/marlinhares)\
**Post date:** [9월 17, 2025, 1:45오후 UTC](https://meta.discourse.org/t/clone-to-a-new-server-change-domain-new-topic-asking-for-login-everytime/382874/5 "2025-09-17T13:45:41Z")

</div>

@Ethsim2님의 정말 귀한 조언 감사합니다.

앞서 작성한 게시물에서 언급했듯이, 해당 문제를 일으킨 플러그인을 비활성화했다가 다시 활성화함으로써 문제가 해결되었습니다.

하지만 저는 discourse에 아직 초보이므로, 이 새로운 환경에서는 반드시 조언하신 대로 진행하겠습니다.
