https://prefect.io logo
Title
h

Hugh Cameron

04/16/2020, 12:36 AM
Hi there 👋 - enjoying the new Prefect releases. Thanks to the
--postgres-port
feature I was able to deploy on my NAS at home. I’m not treating the NAS like a development environment, so I’m testing out flows on my laptop before scheduling on the NAS. My question is - how do I deploy a flow I’ve written locally to another server? Should I run something like
prefect backend server
with an option for the server address
192.168.103.210:8080
?
n

nicholas

04/16/2020, 2:31 AM
Hi @Hugh Cameron! You can run
prefect backend server
and before registering your flow call
export PREFECT__CLOUD__API=*your-server-address*/graphql
to set that environment variable. I believe there's a user config for this but I can't remember it off the top of my head, maybe someone else can chime in
h

Hugh Cameron

04/16/2020, 2:58 AM
Thanks @nicholas - I’ll give that a try.
👍 1