https://prefect.io logo
#prefect-community
Title
# prefect-community
h

Howard Cornwell

08/26/2020, 2:12 PM
Hey, been searching for a while but having no luck; what’s the correct environment variable for configuring the prefect server db host? I’ve tried
PREFECT__SERVER__DATABASE__HOST
but it doesn’t appear to work. Thanks
j

josh

08/26/2020, 2:14 PM
Hi @Howard Cornwell what exactly are you attempting to do? That looks to be the correct host config var in the prefect config
h

Howard Cornwell

08/26/2020, 2:15 PM
Hi rob, just replacing our config.toml with env vars. We’re trying to replace:
Copy code
[server]
  [server.database]
  host = "POSTGRES_DB_HOST_IP"
But the env var doesn’t have the same effect
Just wanted to check we were using the right env var. It must be something we’re doing then
j

josh

08/26/2020, 2:18 PM
Yeah that env var should be updating that config value and looks to be correct. Feel free to open an issue on the repo with some information on steps to reproduce if it isn’t being used so we can triage 🙂