aboutsummaryrefslogtreecommitdiffstats
path: root/config/deploy.rb
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 /config/deploy.rb
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.
Diffstat (limited to 'config/deploy.rb')
-rw-r--r--config/deploy.rb2
1 files changed, 2 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