I believe this is because each deploy is in it's own directory, and the
bundler cache (if not vendored) is stored in the bundle path.

--path: Specify a different path than the system default ($BUNDLE_PATH or
$GEM_HOME). Bundler will remember this value for future installs on this
machine
http://bundler.io/v1.3/bundle_install.html

New deploy, thus new $BUNDLE_PATH. You could probably export `$BUNBLE_PATH`
as part of the default environment for Cap, and set it to a shared
directory.

Lee Hambley
--
http://lee.hambley.name/
+49 (0) 170 298 5667


On 11 November 2013 18:45, Andrei Varanovich <[email protected]> wrote:

> Hi Folks,
>
> I am trying to understand why dependencies are installed on every deploy
> in capistrano3.
>
> here is the relevant output:
>
> 7] Command: cd /home/deploy/app/test/releases/20131111101141 && /usr/bin/env 
> bundle --gemfile /home/deploy/app/test/releases/20131111101141/Gemfile --path 
>   --binstubs  --without development test
>
> I do have this in the config for the test deployment
>
> set :deploy_to, "/home/deploy/app/test"
>
> The Gemfile exists, so why the dependencies are installed on every deploy?
>
> Thanks, Andrei
>
>  --
> --
> * You received this message because you are subscribed to the Google
> Groups "Capistrano" group.
> * To post to this group, send email to [email protected]
> * To unsubscribe from this group, send email to
> [email protected] For more options, visit this
> group at http://groups.google.com/group/capistrano?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to