Capistrano
Friday October 10, 2008 at 2:55am
I have been wrestling with capistrano and git, when I ran the following I got an error:
| $ cap deploy:check |
could not find any SCM named `git' |
|
I ran ‘which git’ by hand on both my local box and remote box.
on the remote box:
| $ which git |
/usr/local/bin/git |
|
on the local box:
| $ which git |
/usr/local/git/bin//git |
|
not sure what the issue was, but I tried to set the following in my deploy.rb without success:
| set :local_scm_command, "/usr/local/git/bin/git" |
set :scm_command, "/usr/local/bin/git" |
|
ultimately, my fix was to uninstall and reinstall git on my local machine.
now on the local box:
| $ which git |
/usr/local/bin/git |
|
now
| $ cap deploy:check |
You appear to have all necessary dependencies installed |
|
Reader Discussion
Kyle
Saturday December 06, 2008 at 4:33am
I came across this same problem, how exactly did you uninstall git?
brian
Monday December 08, 2008 at 12:59am
I don’t recall what I did. However, I imagine I ran rm-rf /usr/local/git on my local box.
Phil
Monday December 29, 2008 at 4:47am
I had this problem on a clean Leopard install that had capistrano 2.1.0. Once I updated to 2.5.3 it worked fine!
Andrew Degenhardt
Thursday January 15, 2009 at 1:29am
I also had this problem on clean install of Leopard, and Capistrano 2.0.0, Updated to 2.5.3, and it worked, thanks Phil.
Jason Green
Thursday February 12, 2009 at 7:09am
Thanks for the advice!
When installing software such as git, macports is great to use. Then install is simple as: sudo port install git-core.
Uninstall: sudo port uninstall git-core
Chris
Saturday September 12, 2009 at 6:44am
my solution was to update the capistrano gem! sudo gem update capistrano
Comment on this post
Related posts
no related posts