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

Env not loaded when starting a single process #86

Closed
adrianmoya opened this issue Jul 14, 2016 · 2 comments
Closed

Env not loaded when starting a single process #86

adrianmoya opened this issue Jul 14, 2016 · 2 comments
Labels

Comments

@adrianmoya
Copy link

I'm starting with forego, and I'm trying this:

Procfile

test: echo $ENVVAR

testenv

ENVVAR=Hello!

I would expect that if I run a single process in the Procfile, I could load the environment, but it's ignored:

$ forego start -e testenv 
forego | starting test.1 on port 5000
test.1 | Hello!
$ forego start test -e testenv 
forego | starting test.1 on port 5000
test.1 | 
@ddollar ddollar added the bug label Jul 24, 2016
@jcmfernandes
Copy link
Contributor

This bug doesn't have to do with running a single process, but with the order of the command line arguments.

If you do forego start -e testenv test (notice that I placed test after -e testenv) things will work as expected.

In sum, the bug is that the order of the parameters is affecting behavior.

@ddollar
Copy link
Owner

ddollar commented Mar 28, 2017

This one isn't easy to change (pretty sure it would involve ripping out the CLI framework) so closing this issue for now. Would happily accept a PR fixing this, though!

@ddollar ddollar closed this as completed Mar 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants