When setting env variables, how to get them using PHP?
I’m using this command to set environmental variable
When I use
printenv I can see it defined. However, PHP can’t see it using
getenv('COMMIT_ID')… What am I doing wrong?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.