Laravel Storage Volume
How can I configure volume mount path for laravel to not delete everything in storage folder on every deployment?
Solution:Jump to solution
Sorry my fault. I changed mount path to
/app/storage/app
and it works fine. π12 Replies
Project ID:
8b792e10-2ce8-4e92-b48d-c9d92c890b40
8b792e10-2ce8-4e92-b48d-c9d92c890b40
what storage path is in use in your deployment?
/storage/media/*
but in volume I am using /storage
I also tried /public/storage
but what is the actual path in the container files are stored?
/storage/public
but than its linked to /public/storage
public files are uploaded in /storage/public
its linked to /public/storage
and can access with domain.com/storage
mount a volume to
/app/storage/public
I did
know this image path works
https://boleta-do-laravel-main-production-20e7.up.railway.app/storage/images/event/01J369F9QAX6ZXZQ1D4DGKNEJ6.jpg
I am deploying now new updates
now its not working
its deletedthat's a URL
what is the path your code saves files to
/storage/public
Solution
Sorry my fault. I changed mount path to
/app/storage/app
and it works fine. π