# Database wont migrate Discourse

**URL:** https://meta.discourse.org/t/database-wont-migrate-discourse/56902
**Category:** Self-hosting
**Created:** [February 4, 2017, 12:19pm UTC](https://meta.discourse.org/t/database-wont-migrate-discourse/56902 "2017-02-04T12:19:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mrabalogu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrabalogu/32/67328_2.png) [@mrabalogu](https://meta.discourse.org/u/mrabalogu)
#### Post date: [February 4, 2017, 12:19pm UTC](https://meta.discourse.org/t/database-wont-migrate-discourse/56902/1 "2017-02-04T12:19:15Z")

</div>

I am new to Discourse and I am looking to make a forum.. I cloned the discourse repo and “bundle install worked” but “bundle exec rake db:migrate” keeps throwing an error. Would appreciate a better approach to hosting discourse clone in dev and prod

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [February 4, 2017, 12:49pm UTC](https://meta.discourse.org/t/database-wont-migrate-discourse/56902/2 "2017-02-04T12:49:55Z")

</div>

For production, only the Docker-based installation is supported. Get started here:

[discourse/docs/INSTALL.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL.md)

For a development install, you can find a good guide here:

> [@Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727):
>
> warning This guide covers installation instructions in a development environment. For a production guide see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on Ubuntu or Debian to hack on and develop with? We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin! Requirements We suggest having at least 4 GB RAM and 2 CPU cores. Current compatibility: O…
