Posts

Showing posts with the label environment variables

Heroku Environmental Variables

Image
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.