I have deployed an app through docker and the env variables are set through App-level Environment variable option.
When i tried to get print(os.getenv(“key”)) in the python application file (say, params.py), i am getting “None” value as output in the browser. However if i get into docker exec -it /bin/bash and exectute the same commands it works fine. Infact i tried running the samefile by prefixing #python3 params.py it works perfectly fine. any ideas why its not working when i access the file through browser?
Breaking my head for the past two days. every help would be appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.