CA Lee

07/30/2022, 4:46 AM
Each time I run
prefect deployment build
, the
file is overwritten ?

Jeff Hale

07/30/2022, 4:55 AM
Try upgrading to 2.0.1 - released today. That release will change that behavior. 🎉
🙌 1
🙏 5
deployment build
command now supports an optional output flag to customize the name of the deployment.yaml file, to better support projects with multiple flows” From the 2.01 release notes.
👍 4

CA Lee

07/30/2022, 3:43 PM
prefect deployment build path/to/ -n flow_name -t tag
files in the root directory. Running this on multiple flows creates multiple
and `.json`files in the root directory (set of 2 files for each flow). Is it normal to have these files pile up in the root directory or is there a recommended way to organize these deployment files for multiple flows ? Creating a
directory and moving these files to that directory results in:
FileNotFoundError: [Errno 2] No such file or directory: 'flow-name-manifest.json'
when attempting to run a flow from the Prefect Cloud UI. Modifying the
arg in
file (below DO NOT EDIT) and subsequently issuing the CLI command
prefect deployment apply path/to/deployment.yaml
does not work as well.

Anna Geller

07/30/2022, 7:04 PM
it's a bit too early for best practice recommendations 😄 2.0 is live since last Wednesday with the --output flag you can specify the file name and path for a manifest
prefect deployment build --name hi --tag dev --output yourdir/hi.yaml
😅 1

Oscar Björhn

07/30/2022, 7:25 PM
Unfortunately you can't specify the path for the manifest file output (only the deployment file output), unless I'm doing something wrong. Copying it to where it should be and making an edit or two might work, didn't get that far yet.

CA Lee

07/31/2022, 2:34 AM
@Anna Geller Guess I’m just too excited to migrate to the new release ! 🎉
🙌 1
@Oscar Björhn Yep, tested and you are right, --output path can only be specified for deployment file output, and this directs the creation of the file at the path specified. I tested your suggestions, both doesn’t work unfortunately. • Copying it to where it should be (moving the manifest file to another folder) • Making an edit (to the manifest path in deployment file) Re-directing the deployment file to
and leaving the manifest file in root folder works as expected.