strongloop / node-foreman

A Node.js Version of Foreman
http://strongloop.github.io/node-foreman/
Other
1.27k stars 119 forks source link

Question - Is it possible to override a single environment var? #148

Closed kirps closed 6 years ago

kirps commented 7 years ago

I have a situation in which I'd like to override a single variable in my .env file. when launching node-foreman

Example, I'd like to be able to run one of my processes headless, so I want to override the variable specifying my current context from 'development' to 'headless' but keep all other vars.

I'm thinking something like

./node_modules/foreman/nf.js start -j Procfile_dev CONTEXT=headless

Obviously that doesn't work, but it shows was I'm trying to do.

I don't really want to maintain two separate .env files as the rest of the variables are identical and we already have issues maintaining the .env files that we do have.

Is this possible, or if not, could it be made possible?

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.