Skip to content

Commit

Permalink
migrate to rbenv for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ck3g committed Mar 27, 2013
1 parent 29a712b commit b62b18a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -50,7 +50,7 @@ group :development do
gem 'capistrano-recipes', :require => false
gem 'capistrano_colors', :require => false
gem 'capistrano-unicorn', '~> 0.1.6', require: false
gem "rvm-capistrano"
gem "capistrano-rbenv"
gem "rails_best_practices"
gem "thin"
gem "zeus"
Expand Down
9 changes: 6 additions & 3 deletions Gemfile.lock
Expand Up @@ -56,6 +56,11 @@ GEM
net-ssh-gateway (>= 1.1.0)
capistrano-ext (1.2.1)
capistrano (>= 1.0.0)
capistrano-platform-resources (0.1.1)
capistrano
capistrano-rbenv (1.0.1)
capistrano
capistrano-platform-resources (>= 0.1.0)
capistrano-recipes (0.8.0)
capistrano (>= 2.5.9)
capistrano-ext (>= 1.2.1)
Expand Down Expand Up @@ -228,8 +233,6 @@ GEM
rubyzip (0.9.9)
russian (0.6.0)
i18n (>= 0.5.0)
rvm-capistrano (1.2.7)
capistrano (>= 2.0.0)
sass (3.2.5)
sass-rails (3.2.6)
railties (~> 3.2.0)
Expand Down Expand Up @@ -319,6 +322,7 @@ DEPENDENCIES
bitmask_attributes (~> 0.4.0)
cancan (~> 1.6.8)
capistrano
capistrano-rbenv
capistrano-recipes
capistrano-unicorn (~> 0.1.6)
capistrano_colors
Expand Down Expand Up @@ -346,7 +350,6 @@ DEPENDENCIES
rails_best_practices
rspec-rails (~> 2.11.0)
russian (~> 0.6.0)
rvm-capistrano
sass-rails (~> 3.2.5)
shoulda (~> 3.1.1)
simple_form (~> 2.1.0)
Expand Down
15 changes: 11 additions & 4 deletions config/deploy.rb
@@ -1,11 +1,18 @@
server "194.165.39.126", :app, :web, :db, :primary => true

set :user, "kalastiuz"

# rbenv
set :default_environment, {
"PATH" => "/home/#{user}/.rbenv/shims:/home/#{user}/.rbenv/bin:$PATH",
}

set :shared_host, "194.165.39.126"
set :application, "starcraft"
set :deploy_to, "/home/kalastiuz/rails/#{application}/"
set :user, "devmen"
set :deploy_to, "/home/#{user}/rails/#{application}/"
set :rbenv_ruby_version, "2.0.0-p0"
set :rbenv_branch, "master"
set :branch, "master"
set :rvm_ruby_string, "2.0.0@sc2_news"
set :unicorn_env, "production"
set :rails_env, "production"

Expand Down Expand Up @@ -64,7 +71,7 @@
end

require 'capistrano_colors'
require "rvm/capistrano" # Rvm bootstrap
require 'bundler/capistrano'
require "capistrano-unicorn"
require "capistrano-rbenv"

0 comments on commit b62b18a

Please sign in to comment.