9 months ago
How can I configure volume mount path for laravel to not delete everything in storage folder on every deployment?
0 Replies
9 months ago
what storage path is in use in your deployment?
9 months ago
but what is the actual path in the container files are stored?
public files are uploaded in /storage/public
its linked to /public/storage
and can access with domain.com/storage
9 months ago
mount a volume to /app/storage/public
[https://boleta-do-laravel-main-production-20e7.up.railway.app/storage/images/event/01J369F9QAX6ZXZQ1D4DGKNEJ6.jpg](https://boleta-do-laravel-main-production-20e7.up.railway.app/storage/images/event/01J369F9QAX6ZXZQ1D4DGKNEJ6.jpg)
9 months ago
that's a URL
9 months ago
what is the path your code saves files to
Sorry my fault. I changed mount path to /app/storage/app
and it works fine. 🙏