Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

migrate to rbenv for deployment

  • Loading branch information...
commit b62b18a3d5cd58aff4200a386d00fd507c4cbc37 1 parent 29a712b
@ck3g authored
Showing with 18 additions and 8 deletions.
  1. +1 −1  Gemfile
  2. +6 −3 Gemfile.lock
  3. +11 −4 config/deploy.rb
View
2  Gemfile
@@ -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"
View
9 Gemfile.lock
@@ -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)
@@ -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)
@@ -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
@@ -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)
View
15 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"
@@ -64,7 +71,7 @@
end
require 'capistrano_colors'
-require "rvm/capistrano" # Rvm bootstrap
require 'bundler/capistrano'
require "capistrano-unicorn"
+require "capistrano-rbenv"
Please sign in to comment.
Something went wrong with that request. Please try again.