Monday, 17 April 2017

Node.js: Can we track / include process.env variables in VCS like git?

I just pulled a node.js server code from git. I had to make a number of one-time changes, like making use of package.json to install all the dependencies, and setting my IDE to use ES6.

But there are a lot process.env variables being used in the code. I understand that there are environment variables.

Is there any way that one could include those variables in the git repository along with the rest of the code? Or, can one write an OS-independent script that would automatically set a number of environment variables?



via Abdul Wasae

No comments:

Post a Comment