# Multiple development instances

**URL:** https://meta.discourse.org/t/multiple-development-instances/51651
**Category:** Development
**Created:** [October 17, 2016, 6:18pm UTC](https://meta.discourse.org/t/multiple-development-instances/51651 "2016-10-17T18:18:04Z")
**Posts on this page:** 4
**Page:** 1

<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: [October 17, 2016, 6:18pm UTC](https://meta.discourse.org/t/multiple-development-instances/51651/1 "2016-10-17T18:18:04Z")

</div>

On my development box, I find myself needing multiple instances. One site I’m importing is on `stable`, others use importers that I am developing. Right now what I do is when switching jobs, I switch branches in git and run a script that does

```bash
RAILS_ENV=development
export RAILS_ENV
RAILS_ENV=development bundle exec rake db:drop db:create db:migrate
bundle exec rake admin:create

```

It’s really annoying when I’ve, say, run an importer that takes several hours and then want to run it again with updated input (and not have to re-import the whole thing).

Is there something different I should be doing? Perhaps I should run separate instances with Vagrant? Contrive to tell Discourse to use a different database for each different job?

Or am I doing the Right Thing?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [December 13, 2022, 7:44pm UTC](https://meta.discourse.org/t/multiple-development-instances/51651/2 "2022-12-13T19:44:15Z")

</div>

Sorry for replying to such an old topic. Did you ever manage to get this to work? My use case is wanting to do some tests with setting up a network of Discourse sites, where some of the sites are functioning as [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) providers and other sites are functioning as [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) clients. I can setup multiple production sites for this, but it would be great to be able to have the sites on my local computer.

---

<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: [December 13, 2022, 7:54pm UTC](https://meta.discourse.org/t/multiple-development-instances/51651/3 "2022-12-13T19:54:21Z")

</div>

It’ll be really hard to get [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) to work (at least as the source, which needs a URL) to work in development. If you’re good at those DNS games (like routing those in through your firewall?), then nothing is stopping you from running multiple production sites on your local machine.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [December 13, 2022, 8:00pm UTC](https://meta.discourse.org/t/multiple-development-instances/51651/4 "2022-12-13T20:00:29Z")

</div>

> [@pfaffman](#):
>
> If you’re good at those DNS games

I’m not 🙂 I’ll stick with testing on production sites.
