https://prefect.io logo
#prefect-server
Title
# prefect-server
p

Prasanth Kothuri

06/08/2022, 9:21 AM
How can I deploy a flow from my mac/desktop to remote prefect server ? currently I am running
python3 flow_name.py
on the server where prefect is installed, thanks !
1
a

Anna Geller

06/08/2022, 11:13 AM
The easiest is to install Prefect 2.0 and just run your flow as any Python script. Then you can start the UI with:
Copy code
prefect orion start
Docs on that https://orion-docs.prefect.io/getting-started/overview/ For Prefect 1.0, you would need to register a flow - docs here
p

Prasanth Kothuri

06/08/2022, 11:16 AM
we are still on prefect 1.0, to register a flow we do it from the machine where prefect server is running, is it possible to register flow from machine A to prefect server running on machine B? hope it is clear
It's a bit strange though, you say you are on Prefect 1.0 but you haven't gotten through those getting started steps with PRefect Server? What am I missing? just curious
p

Prasanth Kothuri

06/08/2022, 11:29 AM
so far I have been registering flows from prefect server where I have this config added ! I didn't know that I can use this on client machine and register flows, let me try now !
a

Anna Geller

06/08/2022, 11:30 AM
ah gotcha - sure, keep us posted
p

Prasanth Kothuri

06/08/2022, 12:48 PM
I was able to register my flow when setting the following env variables
Copy code
export PREFECT__BACKEND="server"
export PREFECT__SERVER__ENDPOINT=<http://ip_address>:port
thank you very much !
a

Anna Geller

06/08/2022, 1:12 PM
nice work, thanks for the update!
4 Views