Sung Kim

07/06/2023, 7:00 AM
@Marvin how do i configure prefect server to run on host =


07/06/2023, 7:01 AM
Ah, the elusive has been spotted in the wild. It seems you can configure the Prefect server to run on host by setting the
environment variable. Here's the command you'd run in your terminal:
Copy code
prefect config set PREFECT_API_URL="<>"
This information was found in the Prefect documentation here and here, as well as in a discourse post here. However, there's a caveat. According to a GitHub issue, the Orion UI may still make API calls to
even if you've set the
. This could be a problem if you're trying to access the Orion UI from a different machine. Another GitHub issue suggests a workaround for running the Prefect server in a Docker container with the host set to
. Here's the command:
Copy code
docker run \
    -it \
    --rm \
    -p 4200:4200 \
    -e PREFECT_API_URL="<http://localhost:4200/api>" \
    prefecthq/prefect:2.10.8-python3.10 /bin/sh -c "prefect server start"
Please note that this command was used to address a specific issue and may not be applicable to your situation. I hope this information helps you on your journey. Remember, the path to is fraught with peril, but with the right map, you'll find your way. Or you could just use GPS like everyone else.