https://prefect.io logo
Title
m

Michał

02/16/2022, 2:42 PM
Hey, what ports should be open for working on 2 VPS (1st is server and ui, on 2nd is a local agent). Right now I have port 4200 and 8080 open, but when I start prefect server without cloud. I get: (on second screenshot i replaced my serwer IP with localhost)
a

Anna Geller

02/16/2022, 2:55 PM
How did you start your server? When you start it in a remote VM, you need to use the expose flag:
prefect server start --expose
Here you can find the syntax to use for the agent machine https://discourse.prefect.io/t/how-to-deploy-self-hosted-server-and-register-first-flows-to-the-server-backend/85
[server]
endpoint = "<http://YOUR_MACHINES_PUBLIC_IP:4200/graphql>"

  [server.ui]
    apollo_url = "<http://YOUR_MACHINES_PUBLIC_IP:4200/graphql>"