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?
in views file tried like:
getenv('video');
but empty.please help.
i checked these links:
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
Post a Comment