# Discourse Integration with other Ruby Application

**URL:** <https://meta.discourse.org/t/discourse-integration-with-other-ruby-application/58944>\
**Category:** Self-hosting\
**Created:** [12 Marzo 2017, 10:49pm UTC](https://meta.discourse.org/t/discourse-integration-with-other-ruby-application/58944 "2017-03-12T22:49:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [13 Marzo 2017, 3:37pm UTC](https://meta.discourse.org/t/discourse-integration-with-other-ruby-application/58944/5 "2017-03-13T15:37:17Z")

</div>

My point was with two machines [x.example.com](http://x.example.com) and [example.com](http://example.com) one doesn’t need to configure Nginx (or caddy) as a front door to deal with directing traffic to the correct site. Discourse just gets by on a 1GB droplet, so you’d probably want to bump to a 2GB droplet, so there’s no fiscal advantage to having a single droplet, and the simplicity of not configuring two Rails apps **and** another web server is probably good advice to someone who’s not sure.

**BUT** if you’re talking about how to set up a dev box, where you don’t care if you’re accessing localhost:3000 and localhost:3001, then that’s a different question. You can just use the same local dev setup and set the port of one of the apps like this:

```
rails server -p 10524

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-integration-with-other-ruby-application/58944)._
