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

Keeping environment variables out of config file? #41

Open
failpunk opened this issue Nov 20, 2017 · 1 comment
Open

Keeping environment variables out of config file? #41

failpunk opened this issue Nov 20, 2017 · 1 comment

Comments

@failpunk
Copy link

How would I pass environment variables to my node application?

I see how you can pass key value pairs into the config:
https://github.com/coldbrewcloud/coldbrew-cli/wiki/Configuration-File#env

But this means you are committing sensitive data to the root of your repo. Is there a way to pull from a .env file outside of the root?

@failpunk failpunk changed the title How to environment variables work? Keeping environment variables out of config file? Nov 20, 2017
@tkeeler33
Copy link

To pass environment variables to your application you can add them as command line parameters to your deployment like this:

coldbrew deploy -E KEY1=value1 -E KEY2=value2

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

2 participants