Question

I am trying to use Capistrano to connect over ssh with svn in order to deploy an app to prod from a windows dev box (Aptana Studio Community Edition). When I run 'cap deploy' it starts executing tasks in deploy.rb, then it asks for a password for user account 'a' but I need to connect using account 'b' not 'a'. User account 'a' has no root privileges on the linux box that I am trying to connect. It seems that svn picks up a default username.

Does any know what's going on? is svn picking up Windows username? in deploy.rb i tell it to connect with user account 'b' with password 'bb'.

Was it helpful?

Solution

Capistrano on Windows is a huge pain in the neck. I only moved back to it when I shifted my development environment to Linux.

Anyway, here's some things to try...

  1. If you enter a blank password, does it prompt for a username?
  2. I'm unclear whether it is the svn or shell username that's wrong but either way you can use these in your deploy.rb file:

    set :scm_username, "your svn username"

    set :scm_password, "your svn password"

    set :user, "your linux user"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top