Non persistant volume storage
nihalrahoof
HOBBYOP

a year ago

I have been uploading images via a website to the mounted volume , it was sucess.

i uploaded the image , retrieved it and made visible in the website but the issue is after re deploying my web all the images are gone.

Solved

3 Replies

a year ago

Make sure your volume is mounted on the proper location, if you mount to /media then it doesn't mean your volume is in your app's "media" folder, it means it's in the container's "media" folder. If you want it to be in your app's working directory then you need to mount it to /app/media for example.


nihalrahoof
HOBBYOP

a year ago

Hey thanks for the quick reply.

but i have mounted it as /app/data.

and in my code iam taking it from /data.
so normally its running and all the images are stored, but when i re deploy it all the images are gone

will attach both screenshots


nihalrahoof
HOBBYOP

a year ago

Hey sorry i made my mount location as /app/data where it should be /my_app_name/dat.

thanks for the help its rectified


Status changed to Solved brody over 1 year ago


Loading...