# 개발 모드에서 Discourse를 초기화하는 방법? (Docker 없이)

**URL:** https://meta.discourse.org/t/how-to-reset-discourse-on-dev-mode-w-o-docker/151967
**Category:** Support
**Created:** [5월 19, 2020, 5:54오후 UTC](https://meta.discourse.org/t/how-to-reset-discourse-on-dev-mode-w-o-docker/151967 "2020-05-19T17:54:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![online\_0227](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/online_0227/32/148592_2.png) [@online\_0227](https://meta.discourse.org/u/online_0227)
#### Post date: [5월 19, 2020, 5:54오후 UTC](https://meta.discourse.org/t/how-to-reset-discourse-on-dev-mode-w-o-docker/151967/1 "2020-05-19T17:54:30Z")

</div>

다음 링크를 따라 진행했습니다.

> [@개발용 Ubuntu 또는 Debian에 Discourse 설치하기](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727):
>
> warning 이 가이드는 개발 환경에서의 설치 지침을 다룹니다. 프로덕션 환경 설치 가이드는 다음을 참조하세요: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) Discourse를 Ubuntu 또는 Debian에 설정하여 개발하고 해킹(개발 작업)을 하길 원하시나요? 로컬에서 작업하고 있으며, Ubuntu 또는 Debian 시스템에 Ruby/Rails/Postgres/Redis가 설치되어 있지 않은 것으로 가정합니다. 시작해 보겠습니다! 요구 사항 최소 4GB의 RAM과 2개의 CPU 코어를 권장합니다. 현재 호환성: OS 호환성 Debian 11white_check_markCrostini (Linux on ChromeOS)white_check_markUbuntu 22.04 또는 그 이상white_check_markDiscourse …

그 후 mybb에서 데이터를 가져왔습니다. 하지만 이제 DB를 초기화하여 새 상태로 만들고 싶습니다.  
개발 모드에서 어떻게 초기화할 수 있을까요?

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [5월 19, 2020, 6:09오후 UTC](https://meta.discourse.org/t/how-to-reset-discourse-on-dev-mode-w-o-docker/151967/2 "2020-05-19T18:09:21Z")

</div>

discourse 디렉터리에서 셸 프롬프트를 실행하여 다음을 입력하면 됩니다:

```plaintext
rake db:drop db:create db:migrate

```

(보통 `bundle exec`가 필요한 경우 앞에 붙여 실행해야 할 수 있습니다)

그러면 됩니다

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [6월 18, 2020, 6:20오후 UTC](https://meta.discourse.org/t/how-to-reset-discourse-on-dev-mode-w-o-docker/151967/5 "2020-06-18T18:20:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
