# Dev environments scripts

**URL:** https://meta.discourse.org/t/dev-environments-scripts/66319
**Category:** Development
**Created:** [July 17, 2017, 11:46am UTC](https://meta.discourse.org/t/dev-environments-scripts/66319 "2017-07-17T11:46:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [July 17, 2017, 11:46am UTC](https://meta.discourse.org/t/dev-environments-scripts/66319/1 "2017-07-17T11:46:18Z")

</div>

I’ve been using the [docker scripts bundled with discourse](https://github.com/discourse/discourse/tree/master/bin/docker) for a while, but I’ve found they don’t work particularly well with my want to often switch between different dev instances (for instance, one running `tests-passed`, one running a branch where I’m developing an awesome new feature, one running a plugin I’m developing, and so on).

So, I rolled my own, heavily inspired by the originals:

[https://github.com/LeoMcA/discourse-dev-scripts](https://github.com/LeoMcA/discourse-dev-scripts)

I’ve been using them for about a week now and they haven’t set anything on 🔥, so I humbly offer them up to anyone else who may find them useful.

Basic usage is explained in the [README](https://github.com/LeoMcA/discourse-dev-scripts#example-usage), but to give a taste:

- Setup a `foo` environment:  
`source discourse-dev-scripts/setup foo`
- Create the `discourse_dev_foo` docker image with the `bar` plugin mounted as a volume:  
`create -p bar`
- Run rails:  
`rails s`

There are some known limitations documented, and probably others I haven’t thought of, which you’re more than welcome to submit a PR to fix, or just complain about in the posts below!
