ddollar/foreman — pull request #101 by ndbroadbent (2011-12-03 04:37:27+00:00)
Title: Added option to specify project_root, if executing a Procfile from a different location

I just discovered the LiveReload gem, and wanted to use foreman to help me set up my development environments.

I didn't want to check in my custom development process, so I needed to extend the behaviour of:

> [The Procfile's] containing directory will be assumed to be the root directory of the application.

I've set up some shared `Procfiles` for development, such as `Rails3Dev`, `Rails31Dev`, `JekyllDev`, etc.

Then I set up a bash alias for each of these Procfiles, such as:

```bash
alias rd31="foreman start -d . -f ~/dev/procfiles/Rails31Dev"
```

I've added the -d flag, as it's necessary for the compass paths in `Rails31Dev`:

```yaml
compass: compass watch --sass-dir app/assets/stylesheets --css-dir public/assets
livereload: livereload
passenger: passenger start
```

Thanks!