https://prefect.io logo
s

Saatvik Ramisetty

11/05/2020, 11:54 PM
Hi Prefect Community, I have prefect server running with GraphQL. I also have an agent registered. How do I deploy my script as a flow to this server? I do have an
Agent ID
from the server. A little confused around this. TIA!
n

nicholas

11/06/2020, 12:27 AM
Hi @Saatvik Ramisetty - I'd recommend that you take a look at the Deployment Tutorial - it'll walk you through setting up your environment, starting your agent, registering your flow with Prefect Server and more! In addition, take a look at the Agents concept docs, which will help you understand the role of agents in the Prefect infrastructure. Last but not least, this Architecture diagram can help you understand the ways in which the various Prefect Server services interact with each other (and their roles!)
s

Saatvik Ramisetty

11/06/2020, 3:40 PM
Hi Nicholas! Thanks for pointing me to the resources. So if I have a a prefect server, graphQL and agent running on a remote machine, how can I deploy to it via my local machine?
Is that possible or do I have to switch to Prefect Cloud
n

nicholas

11/06/2020, 3:45 PM
You'll need to set up your local machine's
~/.prefect/config.toml
to point to your remote server's Apollo Server, it'll look something like this:
Copy code
# ~/.prefect/config.toml

backend="server"

[server]
endpoint="http:<<your_server_public_url>>:4200/graphql"
Then you can register your flow as normal with
flow.register(project_name=..)
s

Saatvik Ramisetty

11/06/2020, 3:45 PM
Aha, i'll give that a shot! Thanks Nicholas!
😄 1