I'm setting up capistrano for the first time. I already have an app
running on a remote server, using git. deploy:check works fine. But
when I try to deploy:update, the shell into my server works fine, but
I get an error when it tries to access my git repo (which is on the
same server I'm deploying on):
executing locally: "git ls-remote file:///data/git/pma.git master"
fatal: '/data/git/pma.git': unable to chdir or not a git archive
However, if I ssh into my server and run the exact same command (not
as root, but as the user I use to ssh with):
$ git ls-remote file:///data/git/pma.git master
I get the refs list as expected.
Since capistrano is just ssh'ing into my remote server, I'm stumped as
to why it doesn't work, whereas the manual execution of the same
commands work.
In my deploy.rb I have (among other options):
set :repository, "file:///data/git/pma.git"
set :deploy_via, :copy
set :scm, :git
set :branch, "master"
(/data/git is owned by the user I'm use to ssh in, so it's not a
permissions error on that. besides, if that were the problem, then
executing the git command manually when ssh'd into my server would
also fail).
Thanks for any clues/help.
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---