Cody Frisby
04/24/2023, 8:05 PMbuild_from_flow
uploads the entire directory to storage rather than just the file that we want to deploy. Is there a workaround for this? We'd like to just upload the single file rather than the entire directory.... Thanks!redsquare
04/24/2023, 8:32 PMCody Frisby
04/24/2023, 8:33 PMredsquare
04/24/2023, 8:35 PMCody Frisby
04/24/2023, 8:36 PM.prefectignore
file is in the root of the project/folder, yes.Nate
04/24/2023, 9:03 PM.prefectignore
file?Cody Frisby
04/24/2023, 9:05 PMpython /path/to/flow.py --deploy
that is uploads the entire directory to cloud storage. Whereas we would expect Prefect's build_from_flow
to only upload the flow.py
file to cloud storage and not the entire directory other than what is in the .prefectignore
file.Nate
04/24/2023, 9:07 PMBy default, Prefect uploads all files in the current folder to the configured storage location (local by default) when you build a deployment.
If you want to omit certain files or directories from your deployments, add afile to the root directory..prefectignore
enables users to omit certain files or directories from their deployments..prefectignore
Similar to otherfrom the docs, all files in the current folder will be uploaded - so you have to define patterns (like gitignore) in the .prefectignore file that you do not want to be uploadedfiles, the syntax supports pattern matching, so an entry of.ignore
will ensure all*.pyc
files are ignored by the deployment call when uploading to remote storage..pyc
Cody Frisby
04/24/2023, 9:09 PMNate
04/24/2023, 9:10 PM