set :application, "hhtimesheet" # Can be whatever you want, I use the project name from my SVN repository
set :domain, "hhtimesheet.com" # The URL for your app
set :user, "hhtimes" # Your HostingRails username
#set :svn_username, "behrang"
#set :svn_password, 'passpass'
set :svn_username,
Proc.new { "xxxx --password xxxx" }
set :repository, "http://svn4.cvsdude.com/behrang/#{application}/trunk" # The repository location for svn+ssh access
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, "4444" # Mongrel port
# set :mongrel_nodes, "4" # Number of Mongrel instances for those with multiple Mongrels
#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
but it looks that capistrano cannot pick up the svn properly and freeze during the cold deply,
here is the log file:
* executing `deploy:cold'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
* executing "svn checkout -q -r4 http://svn4.cvsdude.com/behrang/hhtimesheet/trunk /home/hhtimes/apps/hhtimesheet/releases/20071031123543 && (echo 4 > /home/hhtimes/apps/hhtimesheet/releases/20071031123543/REVISION)"
servers: ["hhtimesheet.com"]
Password:
[hhtimesheet.com] executing command
** [err] Authentication realm: < http://svn4.cvsdude.com:80> Subversion login (behrang)
** [err] Password for 'hhtimes':
** [err] Authentication realm: < http://svn4.cvsdude.com:80> Subversion login (behrang)
** Username:
I also tried the commented way of setting the svn.
Any idea?
Cheers
Behrang