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 value
MY_ENV = get_required_env("MY_ENV")

Redeply/Restart not helping

Solved

1 Replies

hadad-yaniv
HOBBYOP

3 months ago

Solved by redeploy from the main dashboard


Status changed to Solved itsrems 3 months ago


Loading...