# Migrate a Vanilla forum to Discourse

**URL:** <https://meta.discourse.org/t/migrate-a-vanilla-forum-to-discourse/27273>\
**Category:** Sysadmins\
**Tags:** how-to\
**Created:** [06.Апрель.2015 21:27:39 UTC](https://meta.discourse.org/t/migrate-a-vanilla-forum-to-discourse/27273 "2015-04-06T21:27:39Z")\
**Posts on this page:** 1\
**Showing post:** 42

<div class="post-metadata">

**Author:** ![Jesse\_M](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesse_m/32/291014_2.png) [@Jesse\_M](https://meta.discourse.org/u/Jesse_M)\
**Post date:** [28.Январь.2023 15:50:51 UTC](https://meta.discourse.org/t/migrate-a-vanilla-forum-to-discourse/27273/42 "2023-01-28T15:50:51Z")

</div>

/var/www/discourse# RAILS\_ENV=production ruby script/import\_scripts/vanilla.rb /shared/export.txt  
/var/www/discourse/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4.1/lib/active\_record/connection\_adapters/postgresql\_adapter.rb:81:in `rescue in new\_client’: Мы не смогли найти вашу базу данных: discourse. Она должна быть указана в файле конфигурации базы данных, расположенном по пути config/database.yml.

Мне удалось обойти Gemfile, но теперь я получаю эту ошибку. Есть какие-нибудь предложения?

---

_[View the full topic](https://meta.discourse.org/t/migrate-a-vanilla-forum-to-discourse/27273)._
