No commit activity in last 3 years
No release in over 3 years
Bundle all gems in the copy directory via Vagrant and then send it to all servers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Capistrano Strategy: Vagrant Copy Bundled

This recipe for capistrano utilizes the regular copy strategy. However, instead of bundling the gems on the remote servers, they are already pre-bundled on the Vagrant virtual machine and sent as one package.

Based on capistrano-strategy-copy-bundled by Rudolf Schmidt

Installation

System wide usage

gem install 'capistrano-strategy-vagrant-copy-bundled'

In your Gemfile

gem 'capistrano-strategy-vagrant-copy-bundled'

Usage

As this recipe does it's own bundling, there is not need to: require 'bundler/capistrano'.

All you have to do in your config/deploy.rb:

require 'capistrano-strategy-vagrant-copy-bundled'
set :deploy_via, :vagrant_copy_bundled           # bundle gems locally and send them packed to all servers

Additionally to that, you can set the usual options when using the regular :copy strategy for capistrano, like:

set :copy_dir,      "/tmp/#{application}"   # path where files are temporarily put before sending them to the servers
set :copy_exclude,  ".git*"                 # we exclude the .git repo so that nobody is able to temper with the release

Copyright © 2012 Krzysztof Zalewski. Released under the MIT license.