The following setup does not work:
Setting a config var either via the dashboard or via
heroku config:set TESTVAR=123
using heroku config shows the variable is set.
But then logging into the container using
heroku ps:exec
and logging out the env vars should show the variable set via config:set but it does not:
node -e "console.log(process.env)"
Also using
export
does not show the environment variable.
I tried defining the variable in app.json but to no avail:
"env": { "TESTVAR":{ "required": true },
According to the documentation this should work but unfortunately it does not. Any help is appreciated.