set :svn_user, "mysvnuser"
set :svn_pass, "mysvnpass"
ssh_options[:username] = '[email protected]'
ssh_options[:password] = 'mysshpass'
set :user, "admin"
set :password, "mypass"

=============================================================================

# REQUIRED VARIABLES
# =============================================================================
set :application, "domain.com"
set :repository,  "--username #{svn_user} --password #{svn_pass} http://svn.anotherdomain.com/myapp/trunk"

=============================================================================

# OPTIONAL VARIABLES
# =============================================================================
set :deploy_to, "/home/public_html/sub.domain.com" # defaults to "/u/apps/#{application}"
set :deploy_via, :copy
#set :checkout, "export"
set :copy_strategy, :checkout
set :use_sudo, false
set :keep_releases, 3

=============================================================================

# ROLES
# =============================================================================
role :app, application
role :web, application
role :db, application , :primary => true

=============================================================================

# TASKS
# =============================================================================
desc "This will deploy the app - overwrites deploy task so it wont run migrate or other rails related tasks"
deploy.task :deploy do
  run "svn --quiet #{checkout} #{repository} #{release_path}"
  run "ln -nfs #{release_path} #{current_path}"
  run "ln -nfs #{shared_path}/public #{current_path}/public"
end