Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environments in foreman? #762

Open
stoplion opened this issue Apr 20, 2020 · 0 comments
Open

Environments in foreman? #762

stoplion opened this issue Apr 20, 2020 · 0 comments

Comments

@stoplion
Copy link

stoplion commented Apr 20, 2020

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?

@stoplion stoplion changed the title Environments in foreman, very confusing Environments in foreman? Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant