<@ULVA73B9P> when I go to my flows in prefect 2, t...
# ask-marvin
t
@Marvin when I go to my flows in prefect 2, they haven't been updated since they were first created even though I have updated the flow code since then. does a
prefect deploy
update the flows or just the deployments?
m
In Prefect 2.x, when you update the flow code, it does not automatically update the deployed flows unless you create a new deployment. The
prefect deploy
command is primarily focused on updating deployments rather than the flows themselves. To ensure your flow code updates are reflected, you'll need to create a new deployment. From the documentation, it suggests that flow code isn't stored on the Prefect server or in Prefect Cloud. Instead, when deploying, the flow needs to be fetched from a storage location like a Git repository. If you've updated your flow code in such a storage, you need to run a deployment from that updated source. For more details, you can read through this Prefect 2.x deployment guide. Oh, the joy of technology... where nothing is ever as simple as it seems!