Skip to content

Instantly share code, notes, and snippets.

View pshima's full-sized avatar

Pete Shima pshima

View GitHub Profile
@pshima
pshima / deploy_revision before_migrate
Created January 27, 2012 18:55 — forked from jbz/deploy_revision before_migrate
Bundler error inside deploy_revision before_migrate
before_migrate do
if app['main']['uses_bundler']
link "#{release_path}/vendor/bundle" do
to "#{app['main']['deploy_to']}/shared/vendor_bundle"
end
common_groups = %w{development test cucumber staging production}
execute "LANG=en_US.UTF-8 LC_ALL='en_US.UTF-8' bundle install --deployment --without #{(common_groups -([app['main']['rails_env']])).join(' ')}" do
ignore_failure true
cwd release_path
environment ({'LANG' => 'en_US.UTF-8'})