Open stoplion opened 4 years ago
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
RAILS_ENV=test bundle exec foreman start
bundle exec foreman -e test start // bombs
bundle exec foreman -e test start
bundle exec foreman start -e test // bombs
bundle exec foreman start -e test
I've also set up a .env.test with this in it...
.env.test
RAILS_ENV=test
foreman start --env .env.test // starts in develop
foreman start --env .env.test
What is the correct way to do this?
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...foreman start --env .env.test
// starts in developWhat is the correct way to do this?