This documentation shows how to deploy Server to a single machine.
It’s important to:
- Switch your backend to Server (default is Cloud):
prefect backend server
- Include the following configuration to the
~/.prefect/config.tomlon the machine from which you register your flows (e.g. your laptop) so that Prefect knows which API endpoint it should talk to.
[server] endpoint = "http://YOUR_MACHINES_PUBLIC_IP:4200/graphql" [server.ui] apollo_url = "http://YOUR_MACHINES_PUBLIC_IP:4200/graphql"
- Start Server:
prefect server start --expose
If you prefer to deploy it to a Kubernetes cluster, check out our official Helm chart including a detailed README on how to use it.