10 months ago
Hi there, I am in hobby plan. I have created a persistent storage. However, after every new deployment the data in the volume is geting wiped. Am I doing anyting incorrectly? Is this an expected behavior?
18 Replies
10 months ago
if data is being wiped, that data is not being stored in the volume
I can access the data using mounting path. But after redeploy it just becomes a fresh volume.
10 months ago
you need to save data into the volume, your mount path is likely incorrect
10 months ago
and are you sure that your app stores data in that same path?
DATA_DIR = "./data"
In the app backend I have saving the data in thie above directly.
10 months ago
then your mounting dir should be just /data
For example, if your application writes data to ./data, you should mount the volume to /app/data.
This is the instruction I was following.,
10 months ago
how did it go @mykabir ?
Let say I want mount a path for an image directory. let say the name is image. What should be my mounting path and access path?
I am using python. Does it anything to do with package type? Like hobby vs pro?
10 months ago
No, there's no relation between plans.
Volumes are supposed to be simple, if your app uploads images to /data then your volume mounting path should be /data