I am trying to set up a permanent "environment" variable per this SO Post.
I put the variable in my .bash_profile and am able to access it from the command line using.
echo $VAR
However, this is a DSN ( DB Credentials ) needed by PHP ( same thing Heroku does ) and I need to access it using
getenv()
or similar.
If I run env
from the command line I do not see it listed.
It appears there are different types of environment variables and I'm using the wrong one.
How should I do this correctly?