Heroku Environmental Variables


Heroku provide a nice solution for manage the variables within the cross environments.

You can define the production variables within heroku and hide the details in .env files or keep the test data on .env files.

eg:

Using node js you can call these data as fallows.

const stripe = require('stripe')(process.env.DATABASE_URI);

With same code you can keep 2 values within  2 environments.


Comments

Popular posts from this blog

ENOENT: no such file or directory, rename : node_modules/async

react-quill Integrate quill-image-resize-module