aboutsummaryrefslogtreecommitdiffstats
path: root/script/mysociety-switch-to-shared
Commit message (Collapse)AuthorAgeLines
* Add log/ to switch-to-shared scriptGareth Rees2014-07-10-0/+1
| | | | | | | | script/rails-deploy-before-down will complain if log is listed in the SHARED_DIRECTORIES configuration variable and already exists in APP_ROOT. It will recommend this script be used to migrate to a timestamped deployment structure, so adding log/ makes the transition of the log directory easier.
* Add a script to switch mySociety deployments to using shared filesMark Longair2014-01-23-0/+71
This is required by our switch to timestamped-based deploys. There are certain files and directories (e.g. cache, the Xapian databases, generated graphs) that should be shared between deployments, rather than recreating them when creating the next deployment in a new directory. This script should be run as a one-off before switching an instance to using timestamped deploys, to ensure that the existing data is stored in the shared subdirectory of the vhost directory, so that any future deployment can simply create symlinks into the shared directory.