https://prefect.io logo
Title
v

Vadym Dytyniak

09/08/2022, 10:47 AM
Hello. I am trying to apply deployment and I see that the whole project where I have a lot of flows will be uploaded to s3(my storage block). Why I need all this files there? I expect I have to upload only one file with flow code, right?
a

Anna Geller

09/08/2022, 11:40 AM
By default, your entire project gets uploaded, but you're 100% right that only the flow code is what's required. You can customize what gets uploaded to remote storage using the .prefectignore file.
v

Vadym Dytyniak

09/08/2022, 12:09 PM
Is it possible to specify paths I would like to upload instead of excluding?
I have also came up with the solution to create folder for each flow and run apply from that directory
In that case I upload just flow related files
a

Anna Geller

09/08/2022, 12:12 PM
exactly, you can cd into the directory you want to upload and send the files from there you can also upload files yourself and set --skip-upload flag to avoid uploading anything by Prefect
v

Vadym Dytyniak

09/08/2022, 12:15 PM
Thanks