Skip to content
Browse files

capistrano + rvm + bundler

  • Loading branch information...
1 parent 69d39a1 commit 30a1198ce8b4a8a84542ad9661d164a1a8a37fa8 @orenomba committed Aug 11, 2012
Showing with 7 additions and 6 deletions.
  1. +2 −0 .rvmrc
  2. +1 −1 config/database.yml
  3. +4 −5 config/deploy.rb
View
2 .rvmrc
@@ -1 +1,3 @@
rvm 1.9.3@rails_tutorial --create
+rvm_gemset_create_on_use_flag=1
+rvm_trust_rvmrcs_flag=1
View
2 config/database.yml
@@ -27,4 +27,4 @@ production:
username: rails_tutorial
password: password
host: localhost
- socket: /var/run/mysqld/mysqld.sock
+ socket: /var/run/mysqld/mysqld.sock
View
9 config/deploy.rb
@@ -1,15 +1,14 @@
-#rvm
+#rvm bundler
require "rvm/capistrano"
+require "bundler/capistrano"
set :rvm_ruby_string, '1.9.3@rails_tutorial'
+set :rvm_type, :user
+
before 'deploy:setup', 'rvm:install_rvm' # install RVM
before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create gemset, or:
before 'deploy:setup', 'rvm:create_gemset' # only create gemset
-#bundler
-require "bundler/capistrano"
-
-
require 'capistrano_colors'
set :application, "rails_tutorial"
set :repository, "git@github.com:orenomba/rails_tutorial.git"

0 comments on commit 30a1198

Please sign in to comment.
Something went wrong with that request. Please try again.