From 721a87b06bd9bde97f35d0264f3fdfe4c5241b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 27 Sep 2020 15:22:18 +0200 Subject: [PATCH] Add .bundle to shared dirs in Capistrano The 2.0.0 release of capistrano-bundler creates a configuration file under `.bundle/config`. It was creating a new configuration file for each release because we weren't using a shared folder. Besides, quoting the capistrano-bundler README [1]: > In order for Bundler to work efficiently on the server, its project > configuration directory (/.bundle/) should be persistent > across releases. You need to add it to the linked_dirs Capistrano > variable [1] https://github.com/capistrano/bundler/blob/v2.0.1/README.md --- config/deploy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/deploy.rb b/config/deploy.rb index be343f259..c37e3c378 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -25,7 +25,7 @@ set :pty, true set :use_sudo, false set :linked_files, %w[config/database.yml config/secrets.yml] -set :linked_dirs, %w[log tmp public/system public/assets public/ckeditor_assets] +set :linked_dirs, %w[.bundle log tmp public/system public/assets public/ckeditor_assets] set :keep_releases, 5