load 'deploy' if respond_to?(:namespace) # cap2 differentiator Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } ############################################################# # Application ############################################################# set :application, "twitter_test" # Can be whatever you want, I use the project name from my SVN repository set :domain, "americangungfu.com" # The URL for your app set :user, "root" # Your HostingRails username ############################################################# ############################################################# # Settings ############################################################# set :use_sudo, false default_run_options[:pty] = true ############################################################# ############################################################# # Subversion ############################################################# #set :repository, "svn+ssh://#{user}@#{domain}/root/repo/trunk" # The repository location for svn+ssh access set :repository, "svn+ssh://#{user}@#{domain}/root/svnrepo/project1/trunk" # The repository location for svn+ssh access #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 ############################################################# =begin =============================================== # For a Git repository # See http://www.hostingrails.com/forums/wiki_thread/59 for more info on Git and HostingRails\ set :repository, "#{user}@#{domain}:/home/#{user}/git/#{application}" # Or any other valid git clone path set :scm, :git =end # set :scm_username, "svn_username" #if http # set :scm_password, "svn_password" #if http # HostingRails users don't have sudo access set :deploy_to, "/var/www/html" # Where on the server your app will be deployed set :deploy_via, :checkout # For this tutorial, svn checkout will be the deployment method, but check out :remote_cache in the future set :group_writable, false # By default, Capistrano makes the release group-writable. You don't want this with HostingRails # set :mongrel_port, "4444" # Mongrel port that was assigned to you # set :mongrel_nodes, "4" # Number of Mongrel instances for those with multiple Mongrels # 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 #after "deploy:update_code", "customs:config" #after "deploy:symlink","customs:symlink" #after "deploy", "deploy:cleanup"