MusikPolice/musik — pull request #14 by jpennell (2012-10-27 17:47:31+00:00)
Title: Add Profile to support running Musik with Foreman

Using Foreman
============

Using foreman is totally optional, but makes things really awesome.

Foreman is a command-line tool for running Procfile-backed apps. It allows you to run your app easily with environment variables that do not affect the rest of your system.

Install Foreman, it comes pre-packaged with the [Heroku Toolbelt](https://toolbelt.heroku.com/).

Create a ```.env``` file in your project directory

``` bash
cd musik
touch .env
```

**Note:** ```.env``` has been added to the ```.gitignore``` file such that your local environment does not get checked into source control. The readme has an sample ```.env```.

Add any environment variables you wish to your ```.env``` file, here is an example file.

```
PORT=5555
SOME_VAR=blah-blah-blah
```

Start up the Musik server using foreman

``` bash
foreman start
```

Stop the Musik server when running in foreman by hitting ```ctrl-c```