Added option to specify application root directory, when executing a Procfile from a different location #101

Merged
merged 1 commit into from Jan 16, 2012

Conversation

Projects
None yet
3 participants
Contributor

ndbroadbent commented Dec 3, 2011

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 Procfiles, so I needed to alter 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:

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

The only thing missing was the -d flag.

My Rails31Dev file looks like this:

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

Thanks!

daeltar commented Dec 6, 2011

+1

I have different procfiles for development/production/staging and only procfile for dev is in app root, others are in root/config/procfiles directory. So this would save me some sed search and replace during upstart export.

ddollar added a commit that referenced this pull request Jan 16, 2012

Merge pull request #101 from ndbroadbent/foreman
---

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

I didnt want to check in my custom development Procfiles, so I needed to alter the behaviour of:

> [The Procfiles] containing directory will be assumed to be the root directory of the application.

Ive 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"
```

The only thing missing was the `-d` flag.

My `Rails31Dev` file looks like this:

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

Thanks!

Conflicts:
	lib/foreman/cli.rb

@ddollar ddollar merged commit 8bc8cb4 into ddollar:master Jan 16, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment