https://prefect.io logo
s

Samuel Hinton

02/09/2021, 6:01 PM
Hi all, anoter query from me: How do I tell prefect server where the server actually is. I now have a docker container up in the cloud with the 4200 port exposed, and I need to connect to it and run the command to create a default tenant. However, I cannot find any documentation in the prefect.cli for this and the help menu for prefect backend just tells me there are options, but gives no details on what they are (screenshot attached). How can I say something along the lines of
prefect backend server --address=<http://something:4200/graphql>
?
z

Zanie

02/09/2021, 6:04 PM
Hi @Samuel Hinton -- you'll need to modify your
config.toml
Copy code
[server]
host = "<http://localhost>"
port = "4200"
host_port = "4200"
endpoint = "${server.host}:${server.port}"
It lives at
~/.prefect/config.toml
typically
s

Samuel Hinton

02/09/2021, 6:08 PM
Thanks @Zanie - Ill give this a shot 🙂
Hmm can I confirm its a TCP request under the hood? Either Ive done something wrong on the config side or the exposed port (TCP 4200) is not what I should have opened?
z

Zanie

02/09/2021, 6:38 PM
It should be a TCP request since we're using a requests session
s

Samuel Hinton

02/09/2021, 6:39 PM
Awesome, Ill keep debugging, thanks mate