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

cwray-tech's avatar

Mirroring storage directories on same server, two sites.

I have a development site for beta testing, and a live production site on the same server. I would like to be able to mirror the storage directory for images that are uploaded by users on the development site to be available on the live site, and vise versa.

Can anyone point me to some resources/ tutorials on how to do this? Thank you!

0 likes
2 replies
Sinnbeck's avatar

You could symlink the directories. Then one would just point to the other

cwray-tech's avatar

@sinnbeck thank you! I am using Envoyer to deploy them both. Do you know if that would be possible still, since envoyer sets up a symlink from the current deployment to the storage directory? Would I just add another symlink from the storage to the other storage directory?

Please or to participate in this conversation.