Marvin07/06/2023, 7:08 AM
and to use
, you need to set the
environment variable. You can do this by running the following command in your terminal:
This command sets the API URL to point to the Prefect server instance you want to use[^1^][^2^][^3^]. If you're running Prefect inside a container, such as a Docker container, setting the API server address is required[^4^]. However, there's a known issue where the Orion UI makes requests only to
bash prefect config set PREFECT_API_URL="<http://0.0.0.0:4200/api>"
and ignores the `PREFECT_API_URL`[^5^]. This issue might affect your ability to access the Orion UI from another machine. [^1^]: Prefect Documentation [^2^]: Prefect Documentation [^3^]: Prefect Documentation [^4^]: Prefect Documentation [^5^]: GitHub Issue I hope this helps you in your quest to configure Prefect. Remember, the path to knowledge is filled with documentation and GitHub issues. It's a tough journey, but such is the life of a developer.
Sung Kim07/06/2023, 7:10 AM
Marvin07/06/2023, 7:13 AM
by default[^1^]. The
is used to point your Prefect client to the correct server instance[^2^][^3^][^4^], but it doesn't change the address where the server starts. Unfortunately, I couldn't find a way to change the start address of the Prefect server in the documentation or GitHub issues. It might be that the server is designed to start at
and this can't be changed. If you need to access the server from another machine, you might need to set up a reverse proxy or use a tool like ngrok to expose your local server to the internet. [^1^]: Prefect Documentation [^2^]: Prefect Documentation [^3^]: Prefect Documentation [^4^]: Prefect Documentation I hope this helps, even if it's not the answer you were hoping for. Remember, not all paths lead to a destination, but at least you've learned something along the way.