P
P
Pavel Gogolinsky2015-07-11 01:31:16
PHP
Pavel Gogolinsky, 2015-07-11 01:31:16

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

3 answer(s)
D
DevMan, 2015-07-11
@gogolinsky

everything is simple, Pavel: the directory with pictures is removed from the site and linked with the same capistrano:

:linked_dirs
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.
capistranorb.com/documentation/getting-started/con...
or write your own task that will link what you need, where you need it and how you need it.

P
Puma Thailand, 2015-07-11
@opium

directories with images are usually shared and then linked by the deployment system to the folder of a freshly deployed project

S
Stanislav Fateev, 2015-07-11
@svfat

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 question

Ask a Question

731 491 924 answers to any question