# Discourse as Your First Rails App

**URL:** https://meta.discourse.org/t/discourse-as-your-first-rails-app/5751
**Category:** Blog
**Created:** [9 באפריל,‏ 2013,‏ 11:08pm UTC](https://meta.discourse.org/t/discourse-as-your-first-rails-app/5751 "2013-04-09T23:08:33Z")
**Posts on this page:** 9
**Page:** 7

<div class="post-metadata">

### Author: ![mrrao](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@mrrao](https://meta.discourse.org/u/mrrao)
#### Post date: [20 בינואר,‏ 2017,‏ 11:43am UTC](https://meta.discourse.org/t/discourse-as-your-first-rails-app/5751/136 "2017-01-20T11:43:27Z")

</div>

Is there any way to use discourse without using VM? Does it can be used with local system as normal rails app?

---

<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: [20 בינואר,‏ 2017,‏ 12:32pm UTC](https://meta.discourse.org/t/discourse-as-your-first-rails-app/5751/137 "2017-01-20T12:32:43Z")

</div>

Docker is not a VM, it does not suffer the same performance penalty as virtualization.

The official Docker-based install is the only supported installation method (for production use). In theory, you can also use different installation methods, but it will be entirely unsupported, is likely slower than a Docker-based install, and can break with any upgrade.

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [20 בינואר,‏ 2017,‏ 12:46pm UTC](https://meta.discourse.org/t/discourse-as-your-first-rails-app/5751/138 "2017-01-20T12:46:49Z")

</div>

I’ve been able to develop on Discourse just fine using my local machines (mac and linux), no VM required. (Windows will be a bit trickier, so Vagrant or something similar would be the way to go there)

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [20 בינואר,‏ 2017,‏ 10:48pm UTC](https://meta.discourse.org/t/discourse-as-your-first-rails-app/5751/139 "2017-01-20T22:48:13Z")

</div>

Can you explain how to set this up or link to a howto?

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [21 בינואר,‏ 2017,‏ 9:27am UTC](https://meta.discourse.org/t/discourse-as-your-first-rails-app/5751/140 "2017-01-21T09:27:52Z")

</div>

Here’s a back-of-the-napkin approximation for mac (linux will be the similar with `apt-get` instead of `brew`):

(this assumes that you’re using the correct ruby version [2.3.0 at the time of this writing], probably installed with either [rvm](https://rvm.io/rvm/install) or [rbenv](https://github.com/rbenv/rbenv))

```plaintext
brew install redis
brew install postgres
git clone https://github.com/discourse/discourse.git && cd ./discourse
bundle install
rake db:setup
redis-server &
bundle exec rails s

```

---

<div class="post-metadata">

### Author: ![mrrao](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@mrrao](https://meta.discourse.org/u/mrrao)
#### Post date: [27 בינואר,‏ 2017,‏ 11:31am UTC](https://meta.discourse.org/t/discourse-as-your-first-rails-app/5751/141 "2017-01-27T11:31:47Z")

</div>

Thanks for your support. I successfully installed discourse in my local system and running from [http://localhost:3000](http://localhost:3000). But i got stuck when i’m trying to embed comments in other websites from my discourse. When i tried to embed comments i’m getting only **Loading Discussion** message in browser text, but if i passed topicId as parameter it is loading comments perfectly. Can some please help me to resolve this.

Thanks.

---

<div class="post-metadata">

### Author: ![ganesh\_T](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@ganesh\_T](https://meta.discourse.org/u/ganesh_T)
#### Post date: [4 ביולי,‏ 2017,‏ 11:00am UTC](https://meta.discourse.org/t/discourse-as-your-first-rails-app/5751/142 "2017-07-04T11:00:27Z")

</div>

That helped ! Will try it out

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [18 בינואר,‏ 2018,‏ 8:07pm UTC](https://meta.discourse.org/t/discourse-as-your-first-rails-app/5751/143 "2018-01-18T20:07:13Z")

</div>

Thanks for the guide, I’ve got Discourse up and running locally in a VM.

However, unlike the blog screenshot, though, I’m seeing a ‘blank’ discourse forum in set-up mode with the usual ’ Congratulations, you installed Discourse!’ title - am I not meant to be seeing an ‘example’ forum with some pre-loaded threads like the screenshot?

Also, can I load in a back-up of my Production forum using command line fairly simply - any gotcha’s doing this?

Thanks!

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [18 בינואר,‏ 2018,‏ 8:25pm UTC](https://meta.discourse.org/t/discourse-as-your-first-rails-app/5751/144 "2018-01-18T20:25:46Z")

</div>

> [@merefield](#):
>
> However, unlike the blog screenshot, I’m seeing a ‘blank’ discourse forum in set-up mode

That is expected - there’s no pre-seeded content in development installs. That screenshot was just an example of _a site_ running locally, not a brand new development install.

[Previous page](https://meta.discourse.org/t/discourse-as-your-first-rails-app/5751.md?page=6)
