aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2015-04-15 10:41:48 +1000
committerGareth Rees <gareth@mysociety.org>2015-04-28 16:57:16 +0100
commit5da3b9c91e6f1bb7a828b9f253585fb324df391f (patch)
treea80e62d9f64453fbe4b908952efcbc192c0bf279
parentee47bcb5f152bba7bd4b7a5ca5ad0259b1345033 (diff)
Symlink the theme directory on Capistrano deploys
This effectively caches themes for faster and smaller deploys. After the first deploy the themes will only need a Git update and all deploys will share a common Git repositories for the themes.
-rw-r--r--config/deploy.rb2
-rw-r--r--doc/CHANGES.md6
2 files changed, 8 insertions, 0 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index f4a0b536a..d02488bfa 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -58,6 +58,7 @@ namespace :deploy do
"#{release_path}/log" => "#{shared_path}/log",
"#{release_path}/tmp/pids" => "#{shared_path}/tmp/pids",
"#{release_path}/lib/acts_as_xapian/xapiandbs" => "#{shared_path}/xapiandbs",
+ "#{release_path}/lib/themes" => "#{shared_path}/themes",
}
# "ln -sf <a> <b>" creates a symbolic link but deletes <b> if it already exists
@@ -70,6 +71,7 @@ namespace :deploy do
run "mkdir -p #{shared_path}/log"
run "mkdir -p #{shared_path}/tmp/pids"
run "mkdir -p #{shared_path}/xapiandbs"
+ run "mkdir -p #{shared_path}/themes"
end
end
diff --git a/doc/CHANGES.md b/doc/CHANGES.md
index b9406fac3..f4f75ce2b 100644
--- a/doc/CHANGES.md
+++ b/doc/CHANGES.md
@@ -7,6 +7,12 @@
* HTML 'widgets' advertising requests can be displayed on other sites in iframes.
If 'ENABLE_WIDGETS' is set to true in `general.yml` (the default is false), a link
to the widget code will appear in the right hand sidebar of a request page.
+* Capistrano now caches themes (Henare Degan).
+
+## Upgrade Notes
+
+* Capistrano now caches themes in `shared/themes`. Run the `deploy:setup` task
+ to create the shared directory before making a new code deploy.
# Version 0.21