This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'}) |