https://prefect.io logo
Title
b

Blake Stefansen

08/31/2022, 4:32 PM
Hi Everyone, When I create a deployment, the deployment should be uploading all my files in my current directory to my storage (in this case, s3), however, this isn't happening on prefect 2.3.0 I've triple checked my
.prefectignore
and no, it is not ignoring anything critical. Is this a bug?
Now that I look at it, it seems to be ignoring all folders in the root directory. I'm not sure why
j

Jeff Hale

08/31/2022, 9:41 PM
Hmm. I just tested an I was able to load a folder to s3 by deploying. Can you share your deployment build command and the contents of your yaml file? Is your flow code at the same level as the folders?
b

Blake Stefansen

09/01/2022, 1:26 PM
Hi Jeff, The flow code is inside of a folder called
flows
and is one level below the other folders as you can see in the images above showing our file structure ☝️ Does my flow code have to be at the root directory? I've seen examples in the 2.0 docs that suggest putting your flow code in a folder called
flows
build command
prefect deployment build flows/prefect_isp_flow.py:isp_flow --name "test" -q kubernetes --storage-block s3/isp-flow-filesystem
attached is the yaml file
j

Jeff Hale

09/01/2022, 1:54 PM
I’m not sure, but setting the
--path
is now possible possible in 2.3 and might be what you need. See example here.