How to deploy self-hosted Server and register first flows to the Server backend?

This documentation shows how to deploy Server to a single machine.

It’s important to:

  1. Switch your backend to Server (default is Cloud):
prefect backend server 
  1. Include the following configuration to the ~/.prefect/config.toml on the machine from which you register your flows (e.g. your laptop) so that Prefect knows which API endpoint it should talk to.
endpoint = "http://YOUR_MACHINES_PUBLIC_IP:4200/graphql"

    apollo_url = "http://YOUR_MACHINES_PUBLIC_IP:4200/graphql"
  1. 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.