Tom Smets
02/24/2025, 2:23 PMMarvin
02/24/2025, 2:24 PMPREFECT_API_URL
to point to the desired Prefect server endpoint.
3. Switch Profiles: You can switch between these profiles to change the active server endpoint.
Here's a basic example of how you might do this:
bash
# Create a profile for server 1
prefect profile create server1
prefect profile use server1
prefect config set PREFECT_API_URL=<http://server1-endpoint>
# Create a profile for server 2
prefect profile create server2
prefect profile use server2
prefect config set PREFECT_API_URL=<http://server2-endpoint>
# Switch to server1
prefect profile use server1
# Switch to server2
prefect profile use server2
For more detailed information, you can refer to the Prefect documentation on settings and profiles and self-hosting a Prefect server.