Read Heroku configuration variable from JavaScript -


How do I read a configuration variable setup for a Braun app for example:

Enter the image details here From the Azure, I can use something like process.env to read environment variable settings. ALERT_ALLOW_TEST However, how can I read this value from the green environment?

actually uses the Heroko process. Retrieve values ​​However, in this case the type of value (boolean) was different between Azure and Heroku My Boolean conversation was not taking into account that routine, so it seemed that it was not set but actually set it was going. I was not converting it correctly

Here is my regular way of negotiating the boolean that I have modified with another Stakeoverflow post.

  function to boolean (value) {if (typeof value == 'string') {switch (value.toLowerCase ()) {case "true": case "yes": case "1 ": Truth is back; The case "false": "not" case: case "0": case faucet: return false; Default: Break; }} Return boolean (value); }  

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -