Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Env variables when programmatically loading template #10

Open
barrysteyn opened this issue Oct 25, 2019 · 1 comment
Open

Env variables when programmatically loading template #10

barrysteyn opened this issue Oct 25, 2019 · 1 comment

Comments

@barrysteyn
Copy link

@Pavel910 mentions in the README that when loading a template programmatically, one can associate it with any .env:

That way you can deploy unlimited environments, add pre/post processing, load whatever .env you need, etc.

How would "whatever .env you need" be loaded? The only way I can think of loading env variables is to set it in process.env. This does not seem correct, is there a better way of doing things? If so, can the README be updated.

@Pavel910
Copy link
Contributor

Pavel910 commented Oct 25, 2019

Since components do not have a built-in concept of stages or environments, you can handle your --env argument and load an appropriate env config file using, for example, env-cmd.

No time for PR, sorry,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants