Created
March 4, 2011 23:53
-
-
Save oren/855932 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qa.rb | |
----- | |
default_environment['PATH']='$HOME/.rvm/bin:$PATH' | |
set :application_directory, "test_project" | |
set :rails_env, "qa" | |
set :main_server, 'ogolan' | |
server "#{main_server}", :web, :app, :db, :primary => true | |
set :deploy_to, "/srv/#{application_directory}" | |
set :rvm_type, :capdeploy | |
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path. | |
require "rvm/capistrano" # Load RVM's capistrano plugin. | |
set :rvm_ruby_string, "ruby-1.9.2-p180@test_project" # Or whatever env you want it to run in. | |
namespace :deploy do | |
desc "Start the thin cluster" | |
task :start do | |
run "cd /srv/test_project;pwd;rvm info" | |
end | |
end | |
deploy.rb | |
--------- | |
#http://trevmex.com/post/367574671/steps-for-setting-up-a-capistrano-multistage-deployment | |
require 'capistrano/ext/multistage' | |
# ============================================================================ | |
# = General deployment set up for Chihuly | |
# ============================================================================ | |
set :application, 'chihuly' | |
set :repository, 'git@repo.borderstylo.com:chihuly.git' | |
#set :deploy_to, "/srv/#{ application }" | |
set :deploy_via, :remote_cache | |
set :deploy_to_base, "/srv" | |
set :scm, :git | |
set :user, 'capdeploy' | |
set :user_group, 'capdeploy' | |
set :keep_releases, 5 | |
set :use_sudo, false | |
set :stages, ['qa'] | |
#set :default_environment, { 'PATH' => '$HOME/.rvm/bin:$PATH' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment