Skip to content

Commit

Permalink
Add .bundle to shared dirs in Capistrano
Browse files Browse the repository at this point in the history
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 (<release_path>/.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
  • Loading branch information
javierm committed Sep 27, 2020
1 parent 750016f commit 721a87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def deploysecret(key)
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

Expand Down

0 comments on commit 721a87b

Please sign in to comment.