Hi all, I am looking for a way to contain everything related to prefect inside a project directory. Specifically, I would like to be able to change PREFECT_HOME to ./.prefect inside my project. I know I can do this with environment variables, but is there any other way you can do this with a file in the project such as a .env? Any help would be greatly appreciated.
s
schwannden kuo
01/30/2024, 11:26 AM
It really depends on your deployment strategy. We use poetry for python project management, everything is put under a folder called
src
, and we deploy with a
deployment.py
which in turn imports every flow we wish to deploy and uses the programmatic
some_flow.deploy
syntax to deploy flow.
If you use prefect.yaml, it really is similar as you can specificy deployment's
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.