Hi everyone — I’m running prefect server as an ECS...
# prefect-server
b
Hi everyone — I’m running prefect server as an ECS service, and I’m wondering in which container I need to add the config.toml file, or if I can’t use this file config because I’m not running “prefect server start”… Point is, I want to automate this URL but not sure how to, does anyone know?
c
How are you starting the server?
a
You can set the environment variable. It'll only be the default though as you can change it from that page.
upvote 1
👍 2
b
it’s odd but it looks like setting the environment variable didn’t work, as UI still shows the default URL on that corner part of the UI..
a
Did you set
PREFECT_SERVER__APOLLO_URL
?
b
yes I did! The first time I started the service the URL wasn’t set, I only set it on re-deployments, and it didn’t work, so I’m wondering if they store that url somewhere or something…
I’m wondering if I should set the VUE_APP_SERVER_URL environment variable..
k
Do you have a config.toml file?
b
to which container should I add it?
k
On the machine that prefect server is running on . Not in the container
b
But I’m deploying via ECS (docker compose)
k
could it be
PREFECT__SERVER__SERVER____UI____ APOLLO_URL
for your container env var in your task definition? I reckon it’s just matter of figuring out how to define the
env_var
b
I’m gonna try this
PREFECT__SERVER__SERVER____UI____APOLLO_URL
you suggested
k
🤞 worth a shot
👍 1
k
Actually I think the first suggestion was missing an underscore. See this
PREFECT_SERVER__APOLLO_URL
should be
PREFECT__SERVER__APOLLO_URL
b
ah! This makes sense..
k
close enough!