Use Heroku config vars with PHP? -
i've been able find information on how use config vars in heroku python, node.js, , other languages, not php. can use them php, or not supported?
this article shows how python, java, , ruby, not php.
config vars on heroku manifest environment variables, should able access them php other environment variable, eg. using getenv
.
first, set variable console:
heroku config:set my_var=somevalue
then, access code:
$my_env_var = getenv('my_var');
Comments
Post a Comment