Skip to content

Instantly share code, notes, and snippets.

@vishal-kajjam
Created February 8, 2012 04:03
Show Gist options
  • Save vishal-kajjam/1765355 to your computer and use it in GitHub Desktop.
Save vishal-kajjam/1765355 to your computer and use it in GitHub Desktop.
set :application, "paperclip_sample_app"
set :deploy_to, "/var/www/apps/#{application}"
set :deploy_via, :copy
set :scm, :git
set :repository, "."
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
#default_run_options[:pty] = true
set :location, "ec2-107-21-164-101.compute-1.amazonaws.com"
role :web, location # Your HTTP server, Apache/etc
role :app, location # This may be the same as your `Web` server
role :db, location, :primary => true # This is where Rails migrations will run
#role :db, "your slave db-server here"
set :user, "ubuntu"
set :use_sudo, false
set :rake, "rake"
set :base_dir, "/Users/vkajjam"
set :rvm_ruby, "ruby-1.9.2-p290"
set :rvm_gem_home, "#{fetch(:base_dir)}/.rvm/gems/#{fetch(:rvm_ruby)}/gems"
set :rvm_ruby_path, "#{fetch(:base_dir)}/.rvm/rubies/#{fetch(:rvm_ruby)}"
set :default_environment, {
'RUBY_VERSION' => fetch(:rvm_ruby),
'GEM_HOME' => "#{fetch(:rvm_gem_home)}:#{fetch(:rvm_gem_home)}@global",
'BUNDLE_PATH' => fetch(:rvm_gem_home),
'PATH' => "#{fetch(:rvm_gem_home)}/bin:#{fetch(:rvm_gem_home)}@global/bin:#{fetch(:rvm_ruby_path)}/bin:/home/rails/.rvm/bin:$PATH;",
}
ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "id_rsa")]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment