hi varun,
here is my current deploy file:
set :application, "xxx" # Can be whatever you want, I use the project name from my SVN repository
set :domain, "xxx" # The URL for your app
set :user, "xxx" # Your HostingRails username
set :repository, "svn+ssh://#{user}@#{domain}/home/#{user}/svn/#{application}/trunk" # The repository location for svn+ssh access
# set :repository, "http://svn.#{domain}/svn/#{application}/trunk" # The repository location for http access from the server
# set :local_repository, "http://svn.#{domain}:port/svn/#{application}/trunk" # The repository location for http access from the local machine (this could be different from above if you use ssh port forwarding for svn access
# set :scm_username, "svn_username" #if http
# set :scm_password, "svn_password" #if http
set :use_sudo, false # HostingRails users don't have sudo access
set :deploy_to, "/home/#{user}/apps/#{application}" # Where on the server your app will be deployed
set :deploy_via, :checkout # For this tutorial, svn checkout will be the deployment method
set :chmod755, "app config db lib public vendor script script/* public/disp*" # Some files that will need proper permissions
set :mongrel_port, "4140" # Mongrel port that was assigned to you
# set :mongrel_nodes, "4" # Number of Mongrel instances for those with multiple Mongrels
default_run_options[:pty] = true
# Cap won't work on windows without the above line, see
#
http://groups.google.com/group/capistrano/browse_thread/thread/13b029f75b61c09d# Its OK to leave it true for Linux/Mac
ssh_options[:keys] = %w(/Path/To/id_rsa) # If you are using ssh_keys
role :app, domain
role :web, domain
role :db, domain, :primary => true