capistrano and scm_username and github

15 views
Skip to first unread message

John Merlino

unread,
May 10, 2013, 11:36:18 AM5/10/13
to Ruby on Rails: Talk
In the capistrano wiki, it contains this line:

set :scm_username, “foo”. If you access your source repository with a
different user name than you are logged into your local machine with,
Capistrano needs to know.

Actually the way I access my repository through my app is through ssh
keys. The only user name I have with github is the one I use to log
into github to view my repositories.

So I'm not sure if scm_username is needed and what username does it
want.

Robert Walker

unread,
May 14, 2013, 1:03:10 PM5/14/13
to rubyonra...@googlegroups.com
John Merlino wrote in post #1108530:
> In the capistrano wiki, it contains this line:
>
> set :scm_username, foo. If you access your source repository with a
> different user name than you are logged into your local machine with,
> Capistrano needs to know.
>
> Actually the way I access my repository through my app is through ssh
> keys. The only user name I have with github is the one I use to log
> into github to view my repositories.
>
> So I'm not sure if scm_username is needed and what username does it
> want.

If I'm not mistaken, they are not talking about your GitHub username
(or wherever you're hosing your repository). They are talking about the
Git username that you set with git config.

$ git config --list
user.name=Robert Walker
user.email=na...@example.com
...
...

This information will show up in git log indicating the author of the
changes at the time they were committed. It has nothing to do with
authentication for accessing the Git repository. That, as you mentioned,
is handled separately from :scm_username thorough something like ssh as
you mentioned.

--
Posted via http://www.ruby-forum.com/.

Frederick Cheung

unread,
May 14, 2013, 1:17:05 PM5/14/13
to rubyonra...@googlegroups.com
On Friday, May 10, 2013 4:36:18 PM UTC+1, John Merlino wrote:
In the capistrano wiki, it contains this line:

set :scm_username, “foo”. If you access your source repository with a
different user name than you are logged into your local machine with,
Capistrano needs to know.

Actually the way I access my repository through my app is through ssh
keys. The only user name I have with github is the one I use to log
into github to view my repositories.

There is still an associated user name - you added your ssh key to a github account - what is the name of that account ?

Fred
Reply all
Reply to author
Forward
0 new messages