Welcome Guest | Login

using other subversion,

I am trying to install my application using capistrano 2.0 with an external svn, I followed the tutorial and here is my deploy.rb
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

2007-10-31 07:37 AM

Hi - could you please try a temp check out on the server via console and then try it via Capistrano

$ svn co http://path.to.svn/svn/trunk/  
$ rm -rf trunk

2007-10-31 08:39 AM

HostingRails Support
actually i fixed the problem the trick was this:
set :repository,  Proc.new {"--username #{svn_username} --password #{svn_password} http://svn4.cvsdude.com/behrang/#{application}/trunk"}  # The repository location for svn+ssh access

2007-10-31 08:52 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.