Hi Everyone, When I create a deployment, the depl...
# ask-community
b
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
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
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
Copy code
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
I’m not sure, but setting the
--path
is now possible possible in 2.3 and might be what you need. See example here.