Answer the question
In order to leave comments, you need to log in
How to deploy a site if there is unique content in production?
Site in php. Deploy with capistrano and bitbucket.
Now people use the site, write articles on it, and most importantly, upload photos.
The site needs to be changed and improved, deploy new versions to production. When deploying from bitbucket, a fresh release of the site with changes is copied, libraries are pulled up in vendors, and the database is connected. But what about the images that users uploaded to the old site? In bitbucket, of course, they are not. What is usually done in such a case?
Answer the question
In order to leave comments, you need to log in
everything is simple, Pavel: the directory with pictures is removed from the site and linked with the same capistrano:
:linked_dirscapistranorb.com/documentation/getting-started/con...
default: []
Listed directories will be symlinked into the release directory during deployment.
Can be used for persistent directories like uploads or other data. See Structure for the exact directories.
directories with images are usually shared and then linked by the deployment system to the folder of a freshly deployed project
if you use GIT then in .gitignore folder with downloaded images, if Mercurical then in .hgignore
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question