Are there any best practices for deploying prefect...
# prefect-getting-started
e
Are there any best practices for deploying prefect flows? for example • prefect deploy vs prefect deployment • deploy using python file vs prefect.yaml • prefect.yaml for flows/groups of deployments vs one prefect.yaml for all deployment
👀 1
j
For work pool-based deployment creation with Python we recommend using the
flow.deploy
method (or the
deploy
function for deploying multiple deployments at once). Use
prefect.yaml
if you prefer YAML-based deployments. Either option is fine and both are popular. For your last bullet point - it depends on your setup.
e
Is the
deploy
function the one from the
prefect deploy
command? for the
flow.deploy()
method, is there a way to push code to remote storage just like push_code in prefect.yaml?
j
For the second question, not that I recall.