Commit 1d78d307

mo k <m@mokhan.ca>
2011-08-30 03:08:20
update deployment configuration.
1 parent d7f741c
Changed files (2)
config/deploy.rb
@@ -3,18 +3,18 @@ set :repository,  "git@cakeartist.unfuddle.com:cakeartist/cake.git"
 
 set :scm, :git
 # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
-set :deploy_to, "/home/ubuntu/apps/#{application}"
+set :deploy_to, "/home/cakeside/apps/#{application}"
 
-role :web, "ec2-50-17-28-146.compute-1.amazonaws.com"                          # Your HTTP server, Apache/etc
-role :app, "ec2-50-17-28-146.compute-1.amazonaws.com"                          # This may be the same as your `Web` server
-role :db,  "ec2-50-17-28-146.compute-1.amazonaws.com", :primary => true # This is where Rails migrations will run
+role :web, "ec2-50-16-149-107.compute-1.amazonaws.com"                          # Your HTTP server, Apache/etc
+role :app, "ec2-50-16-149-107.compute-1.amazonaws.com"                          # This may be the same as your `Web` server
+role :db,  "ec2-50-16-149-107.compute-1.amazonaws.com", :primary => true # This is where Rails migrations will run
 
-set :user, "ubuntu"
+set :user, "cakeside"
 set :use_sudo, false
 
 $:.unshift(File.expand_path('./lib', ENV['rvm_path']))
 require "rvm/capistrano"                              
-require 'bundler/capistrano'
+# require 'bundler/capistrano'
 set :rvm_ruby_string, '1.9.2@cakeside'
 set :rvm_type, :user
 
config/setup_load_paths.rb
@@ -0,0 +1,28 @@
+if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm')
+  begin
+    rvm_path     = File.dirname(File.dirname(ENV['MY_RUBY_HOME']))
+    rvm_lib_path = File.join(rvm_path, 'lib')
+    $LOAD_PATH.unshift rvm_lib_path
+    require 'rvm'
+    RVM.use_from_path! File.dirname(File.dirname(__FILE__))
+  rescue LoadError
+    # RVM is unavailable at this point.
+    raise "RVM ruby lib is currently unavailable."
+  end
+end
+
+# Select the correct item for which you use below.
+# If you're not using bundler, remove it completely.
+
+# If we're using a Bundler 1.0 beta
+ENV['BUNDLE_GEMFILE'] = File.expand_path('../Gemfile', File.dirname(__FILE__))
+require 'bundler/setup'
+
+# Or Bundler 0.9...
+if File.exist?(".bundle/environment.rb")
+  require '.bundle/environment'
+else
+  require 'rubygems'
+  require 'bundler'
+  Bundler.setup
+end
\ No newline at end of file