ddollar / foreman

Manage Procfile-based applications

Home Page:http://ddollar.github.com/foreman

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Environments in foreman?

stoplion opened this issue · comments

Can Foreman take an env var from the cli?

I'm trying in several ways. Nothing seems is picking up.

For example, I need to run Rails (using Foreman) in test mode, to run some tests...

RAILS_ENV=test bundle exec foreman start
// starts in develop

bundle exec foreman -e test start
// bombs

bundle exec foreman start -e test
// bombs

I've also set up a .env.test with this in it...

RAILS_ENV=test

foreman start --env .env.test
// starts in develop


What is the correct way to do this?