Use Heroku config vars in PHP? -


i trying heroku variable in php.i have been defined variable in heroku.but problem not able access variable.

i have checked variable in web , console..the variable there.but in php shows empty.anything need in composer or vendor?

enter image description here

enter image description here

in views file tried like:

getenv('video'); 

but empty.please help.

i checked these links:

  1. use heroku config vars php?

  2. https://devcenter.heroku.com/articles/deploying-php

there procfile in vendor/bin/heroku-php-apache2..if file there config var function works.

$config_var = getenv('config_var'); 

sorry checking in localhost after clone heroku.in localhost procfile file not there.that why did not work.in heroku application file exist.it works in heroku app.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -