Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hamzafaouzi's avatar

Files in storage/app/public folder pushed to git but not available after deployment with deployer

hello guys Im having a problem on my server , I have some files and subfolders in storage/app/public folder that I want it to be available in my production server , ( most of files are svg images ) , I added the files to git and pushed to my git server but when I deploy to my production server the files are not available , Thank you very much for yout help

0 likes
10 replies
Cronix's avatar

What kind of server/hosting is it? Are you using something like Heroku?

hamzafaouzi's avatar

I use digitalocean for hosting deployer laravel 5.6 thank you

Snapey's avatar

When you say 'not available' you mean they don't appear on the web page or they are not actually present in the public folder?

click's avatar

Deployer creates a shared storage directory by default (equal to what envoyer does). I think this is your culprit, not sure though.

Snapey's avatar

and you can see them in your git client?

hamzafaouzi's avatar

yes I can , i think deployer what is causing the problem but I dont what to do

oatteeraphat's avatar

remove

/storage/* and /public/storage

in your .gitignore have you done it ??

hamzafaouzi's avatar

there is no /storage/* and /public/storage in my .gitignore file I think it's something with deployer

Hesesses's avatar

I have the same problem. Did you ever solve this? And do you mean envoyer or deployer? I'm using envoyer

Please or to participate in this conversation.