Can't read the env var I set in my python code
hadad-yaniv
HOBBYOP
3 months ago
I read it in the code using:
def get_required_env(name):
"""Get a required environment variable or raise RuntimeError if not set."""
value = os.environ.get(name)
if not value:
raise RuntimeError(f"{name} not configured!")
return valueMY_ENV = get_required_env("MY_ENV")
Redeply/Restart not helping
1 Replies
hadad-yaniv
HOBBYOP
3 months ago
Solved by redeploy from the main dashboard
Status changed to Solved itsrems • 3 months ago