Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6031049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:07:35+00:00 2026-05-23T05:07:35+00:00

I setup a new project with Capistrano and although i can successfully run cap

  • 0

I setup a new project with Capistrano and although i can successfully run cap deploy:setup if i try to deploy my project I get the error below

→ cap deploy
  * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    updating the cached checkout on all servers
    executing locally: "git info git@github.com:foo/Baconalytics.git  -rHEAD"
git: 'info' is not a git command. See 'git --help'.

Did you mean one of these?
    init
    mailinfo
*** [deploy:update_code] rolling back

I have several other projects that deploy fine from the same machine however this one will not. Git is installed on my host and target. Does anyone know troubleshooting steps I can take?

My deploy.rb file:

require "bundler/capistrano"
set :application, "baconalyitcs"
set :repository, "git@github.com:foo/Baconalytics.git"
set :scm_command, "git"
set :deploy_to, "/root/baconalytics"
set :branch, "master"
set :user, "root"
set :use_sudo, false
ssh_options[:forward_agent] = true


set :deploy_via, :remote_cache



set :ruby_prefix, "/usr/bin/ruby"
set :deploy_user, "#{ENV['USER']}"

role :worker, "xxx.compute-1.amazonaws.com", :primary => true
role :namenode, "xxx.compute-1.amazonaws.com"

after "deploy", "deploy:bundle_gems"
after "deploy", "deploy:print_success_banner"


namespace :deploy do

  task :print_success_banner do
    puts "---------------------------------------------------"
    puts "--------------- DEPLOY SUCCEEDED ------------------"
    puts "---------------------------------------------------"
  end


  task :bundle_gems, :roles => [:worker] do
    run "rm -rf /mnt/app/current/vendor/cache; true"
    run "if [ -f /mnt/app/current/Gemfile.lock ]; then rm /mnt/app/current/Gemfile.lock; fi;"

    cmd = [
           "cd #{current_path}",
           "#{ruby_prefix}/bundle install",
          ].join(" && ")
    run cmd
  end
end

task :ssh do
  role = ARGV[1]
  servers = @roles[role.to_sym].servers rescue @roles[role.to_sym]
  puts instances = `rake ec2:din` unless server
  instances = instances.split("\n") unless server
  system "ssh -o StrictHostKeyChecking=no root@#{(server || instances[ssh_server.to_i].split("\t")[2])}"
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:07:36+00:00Added an answer on May 23, 2026 at 5:07 am

    Update after posting the deploy.rb:

    You have to use set :scm, "git" so that it recognizes that you are using git. Hope that helps.

    Note, my initial statement on confusion between git and svn is right. It was thinking it was an svn repo, but since you changed the scm_command alone to git, it was trying git info. scm_command I think has to be used only when the scm command is not on path.


    info is not a git subcommand like it says.

    git: 'info' is not a git command. See 'git --help'.
    
    Did you mean one of these?
        init
        mailinfo
    

    clearly, git is installed and fine, but info is not a git command. ( But svn has it, any confusion between git and svn? )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have very strange error I can't understand. I started a new project throw
I've just setup a new project on SourceForge and the admins set it up
I created a new Visual Studio Setup project with VS 2008. I use it
I'm trying to get a new Enterprise Application Project set up in Eclipse using
i am trying to setup a new symfony framework project on ubuntu by following
How can I create a new project that only uses the Symfony2 Console component?
I started a new project in rails and setup a server and assembla to
how can I protect my assembly, because once I deploy the setup, assembly will
I've created a windows application in c# now i added a new setup project
My VS 2003 is not working. Whenever I try to create a new project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.