How to access CloudControl config.free CONFIG_VARS -


how access cloudcontrol config.free config_vars?

as not documented here comes answer:

if ($credfile = getenv('cred_file')) {     $credfilecontents = file_get_contents($credfile);     if ($credfilecontents !== false) {         $creddata = json_decode($credfilecontents, true);         $value = $creddata['config']['config_vars']['my_var'];     } } 

that means within cred_file config addon has corresponding array/secction config contains array/section config_vars contains vars.


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -