Authentication for SVN with SwitchTower

If you are using SwitchTower to deploy your apps and your subversion repository needs a different user and password to your deployment boxes then use the following snippet in your deploy.rb:

set :repository, "--username usr --password pass http://repourl/"

It isn’t ideal as your password is in deploy.rb but you could use a read-only user. I am hoping I can figure out how to send an environment variable when using rake deploy so that I can set the password then.

I found this little trick on SwitchTower progress.

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus