Commit d7f741ce

mo k <m@mokhan.ca>
2011-08-16 04:12:48
try to get cap deployment working with rvm.
1 parent dd9fe15
Changed files (2)
config/deploy.rb
@@ -11,6 +11,13 @@ role :db,  "ec2-50-17-28-146.compute-1.amazonaws.com", :primary => true # This i
 
 set :user, "ubuntu"
 set :use_sudo, false
+
+$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
+require "rvm/capistrano"                              
+require 'bundler/capistrano'
+set :rvm_ruby_string, '1.9.2@cakeside'
+set :rvm_type, :user
+
 ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "amazon-cakeside", "cakeside.pem")] 
 # if you're still using the script/reaper helper you will need
 # these http://github.com/rails/irs_process_scripts
Gemfile
@@ -31,8 +31,8 @@ group :test do
   gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i
   gem 'growl', :require => false if RUBY_PLATFORM =~ /darwin/i
   gem 'growl_notify', :require => false if RUBY_PLATFORM =~ /darwin/i
-  gem 'rb-inotify', :require => false if RUBY_PLATFORM =~ /linux/i
-  gem 'libnotify', :require => false if RUBY_PLATFORM =~ /linux/i
+  # gem 'rb-inotify', :require => false if RUBY_PLATFORM =~ /linux/i
+  # gem 'libnotify', :require => false if RUBY_PLATFORM =~ /linux/i
 end
 group :production do
   gem 'pg'