Permalink
Browse files

setup rvm capistrano

  • Loading branch information...
xdite committed Dec 16, 2012
1 parent 9f80e17 commit b4472017a0c0f205a31c8c0690f90dd245375c0f
View
@@ -4,6 +4,7 @@ alpha
* fixing deploy file
* update to bootstrap-helper 1.2.1
* remove newrelic_rpm
+ * rvm-capistrano
0.1.0 (Nov 12, 2012)
* add powder to Gemfile
@@ -10,7 +10,6 @@ def raise_delivery_errors
'raise_delivery_errors = false', 'raise_delivery_errors = true'
end
-
def add_common_rake_tasks
directory 'tasks', 'lib/tasks'
end
@@ -21,10 +20,10 @@ def add_devise_gem
end
def create_capistrano_files
- template 'capistrano/deploy_rb.erb', 'config/deploy.rb',:force => true
- template 'capistrano/Capfile', 'Capfile',:force => true
- empty_directory 'config/deploy'
- directory 'capistrano/deploy', 'config/deploy'
+ template 'capistrano/deploy_rb.erb', 'config/deploy.rb',:force => true
+ template 'capistrano/Capfile', 'Capfile',:force => true
+ empty_directory 'config/deploy'
+ directory 'capistrano/deploy', 'config/deploy'
end
def create_database
@@ -49,10 +48,9 @@ def gitignore_files
end
def init_git
- run 'git init'
+ run "git init"
end
-
def build_settings_from_config
@@ -69,7 +67,7 @@ def remove_routes_comment_lines
replace_in_file 'config/routes.rb', /Application\.routes\.draw do.*end/m, "Application.routes.draw do\nend"
end
- def use_mysql_config_template
+ def use_mysql_config_template
template 'mysql_database.yml.erb', 'config/database.yml',:force => true
template 'mysql_database.yml.erb', 'config/database.yml.example', :force => true
@@ -17,6 +17,9 @@ gem "high_voltage"
gem "airbrake"
gem "turbo-sprockets-rails3"
+gem "rvm-capistrano"
+
+
# Cache
gem "dalli"
@@ -2,4 +2,4 @@ load 'deploy'
# Uncomment if you are using Rails' asset pipeline
load 'deploy/assets'
load 'config/deploy'
-load 'config/deploy/assets'
+# load 'config/deploy/assets'
@@ -2,6 +2,7 @@
require "./config/boot"
require "bundler/capistrano"
+require "rvm-capistrano"
default_environment["PATH"] = "/opt/ruby/bin:/usr/local/bin:/usr/bin:/bin"
@@ -19,6 +20,8 @@ set :deploy_to, "/home/apps/#{application}"
set :runner, "apps"
set :deploy_via, :remote_cache
set :git_shallow_clone, 1
+set :use_sudo, false
+set :rvm_ruby_string, '1.9.3'
role :web, "<%= app_name %>.com" # Your HTTP server, Apache/etc
role :app, "<%= app_name %>.com" # This may be the same as your `Web` server

0 comments on commit b447201

Please sign in to comment.