Skip to content

Commit

Permalink
Moving gem_home and gem_path to capistrano recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
dtsato committed Jan 29, 2012
1 parent e196cfc commit d997e2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions config.ru
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# This file is used by Rack-based servers to start the application.
if ENV['RAILS_ENV'] == 'production'
ENV['GEM_HOME'] = "#{ENV['HOME']}/.gems"
ENV['GEM_PATH'] = "#{ENV['HOME']}:/usr/lib/ruby/gems/1.8"
require 'rubygems'
Gem.clear_paths
end

require ::File.expand_path('../config/environment', __FILE__)
run AgileBrazil::Application
2 changes: 2 additions & 0 deletions config/deploy/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
set :project, "submissoes"
set :application, "submissoes.agilebrazil.com"
set :applicationdir, "/home/#{user}/#{application}"
set :gem_home, "#{applicationdir}/shared/bundle/ruby/1.8"
set :gem_path, "#{gem_home}:/usr/lib/ruby/gems/1.8"
set :bundle_cmd, "/home/#{user}/.gems/bin/bundle"
set :rake, "#{bundle_cmd} exec rake"

Expand Down
2 changes: 2 additions & 0 deletions config/deploy/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
set :project, "agilebrazil"
set :application, "agilebrazil.dtsato.com"
set :applicationdir, "/home/#{user}/#{application}"
set :gem_home, "#{applicationdir}/shared/bundle/ruby/1.8"
set :gem_path, "#{gem_home}:/usr/lib/ruby/gems/1.8"
set :bundle_cmd, "/home/#{user}/.gems/bin/bundle"
set :rake, "#{bundle_cmd} exec rake"

Expand Down

0 comments on commit d997e2b

Please sign in to comment.