Hello,

I'm trying to improve the speed of my deploy script.
As it is now it works perfectly, but `bundle:install` is incredibly slow: 
it takes between 2 and 4 minutes every time.


I noticed that Capistrano doesn't use the default directory for the user 
who executes the rack app server: ~/.rvm/....
Rather, it installs the gems in the vendor folder of each release. for 
example:
/var/www/wonderingmachine/releases/20130512001352/vendor/bundle/ruby/2.0.0/gems/unicorn-4.6.2

After Capistrano has slowly run `bundle:install`, I can run it manually 
again and as expected it only takes few seconds (it doesn't need to install 
any new gem).


I have a Gemfile and a Gemfile.lock in my app, and they are both checked in 
the git repository. The Gemfile.lock doesn't change that often and I don't 
see why Capistrano should download and install all the gems each time.
I imagine that using the default gem directory would speed thing up, as 
Capistrano will need to install new gems only when I want it to update 
something (that is, when I commit an updated Gemfile.lock)
Is there any reason why I shouldn't do it?



Anyway, I see there is a variable names "bundle_dir".
Could you help me set it up?


    # other ENV variables are set as well
    #
    default_environment["GEM_HOME"]     = 
"/home/runner/.rvm/gems/ruby-2.0.0-p0"
    default_environment["GEM_PATH"]     = 
"/home/runner/.rvm/gems/ruby-2.0.0-p0:/home/runner/.rvm/gems/ruby-2.0.0-p0@global"
    set :bundle_dir, "....?"

Thanks a lot

-- 
-- 
* 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