Samuel Hinton

    Samuel Hinton

    1 year ago
    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>
    ?
    Michael Adkins

    Michael Adkins

    1 year ago
    Hi @Samuel Hinton -- you'll need to modify your
    config.toml
    [server]
    host = "<http://localhost>"
    port = "4200"
    host_port = "4200"
    endpoint = "${server.host}:${server.port}"
    It lives at
    ~/.prefect/config.toml
    typically
    Samuel Hinton

    Samuel Hinton

    1 year ago
    Thanks @Michael Adkins - 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?
    Michael Adkins

    Michael Adkins

    1 year ago
    It should be a TCP request since we're using a requests session
    Samuel Hinton

    Samuel Hinton

    1 year ago
    Awesome, Ill keep debugging, thanks mate