I've Phoenix app (I created it with --api flag) that has some additional data required to process requests that I store in priv/data/filters.csv
.
So it works fine in dev
mode, I can read this file like: File.stream!("priv/data/filters.csv")
, but once app is delivered using mix edeliver update
this file is not accessible anymore.
I can see this folder in build directory, but after app is delivered there is no such folder priv
. I'm not sure why it's not copied to deliver folder.
What I'm doing wrong? Do I need to copy these files after deliver process? Where can I store my files that I have to use in prod mode?