https://prefect.io logo
#prefect-server
Title
# prefect-server
b

Bruno Murino

07/01/2021, 8:38 AM
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

ciaran

07/01/2021, 9:46 AM
How are you starting the server?
a

Amanda Wee

07/01/2021, 9:54 AM
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

Bruno Murino

07/01/2021, 6:07 PM
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

Amanda Wee

07/01/2021, 11:49 PM
Did you set
PREFECT_SERVER__APOLLO_URL
?
b

Bruno Murino

07/02/2021, 7:57 AM
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

Kevin Kho

07/02/2021, 8:24 PM
Do you have a config.toml file?
b

Bruno Murino

07/06/2021, 8:41 AM
to which container should I add it?
k

Kevin Kho

07/06/2021, 11:38 AM
On the machine that prefect server is running on . Not in the container
b

Bruno Murino

07/06/2021, 12:23 PM
But I’m deploying via ECS (docker compose)
k

Keat

07/06/2021, 1:16 PM
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

Bruno Murino

07/06/2021, 1:28 PM
I’m gonna try this
PREFECT__SERVER__SERVER____UI____APOLLO_URL
you suggested
k

Keat

07/06/2021, 1:31 PM
🤞 worth a shot
👍 1
k

Kevin Kho

07/06/2021, 1:32 PM
Actually I think the first suggestion was missing an underscore. See this
PREFECT_SERVER__APOLLO_URL
should be
PREFECT__SERVER__APOLLO_URL
b

Bruno Murino

07/06/2021, 1:33 PM
ah! This makes sense..
k

Keat

07/06/2021, 1:35 PM
close enough!