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 952501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:54:12+00:00 2026-05-15T23:54:12+00:00

I am using Capistrano to deploy a ruby on rails project. I am attempting

  • 0

I am using Capistrano to deploy a ruby on rails project. I am attempting to login to remote server as user ‘deploy’ and deploy this application.

When I ssh into box as deploy and git clone the project it works

ssh deploy@remote_box
git clone git@github.com:lumdum/demo.git 

However when I run using Capistrano it says that permission denied to account dorelal. dorelal is my account on GitHub. So I thought Capistrano is executing the task locally on my mac and not on my remote server which is on Redhat.

And that is true that Capistrano is running locally the command. when I execute

cap staging deploy -vvvv

this is the error message I am getting

executing locally: "git ls-remote git@github.com:lumdum/demo.git master“

Notice it says ‘executing locally’. Why is capistrano running it locally and not on my remote box.

here is my deploy.rb

set :stages, %w(staging)
require 'capistrano/ext/multistage'

set :repository,  "git@github.com:lumdum/demo.git"
set :scm, :git
set :user, 'deploy'
set :use_sudo, false
set :keep_releases, 2

role :web, "serv1"                 
role :app, "serv1" 
role :db,  "db1", :primary => true 

set :application, "demo_staging"
set :branch, "master"
set :deploy_via, :remote_cache
set :deploy_to, "/var/www/rails/demo"
set :scm_user, 'dorelal_lumdum'
set :user, 'deploy'

set :rails_env, "staging"
set :keep_releases, 1
  • 1 1 Answer
  • 1 View
  • 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-15T23:54:13+00:00Added an answer on May 15, 2026 at 11:54 pm

    Capistrano runs that locally to determine the HEAD on the repository, which is then used in the subsequent step to check-out (or, clone in Git terminology) the precise revision that was seen from your workstation.

    I’ll admit this is a little unexpected!

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

Sidebar

Related Questions

I am using capistrano to deploy my Ruby on Rails project. I am on
I am trying to deploy my rails application to a server using capistrano and
I am using capistrano to deploy my rails app into my ec2 server but
So I am using Capistrano to deploy a rails application to my production server
I am currently deploying a Rails application using Capistrano. Cap deploy:update_code usually works just
I'm trying to deploy my rails application by using Passenger and Capistrano on Dreamhost.
I am using capistrano to deploy my rails application. I want to override the
I'm currently using capistrano to deploy my project. However I'm having this problem below:
I'm deploying a Ruby on Rails and NodeJS application using Capistrano. The uploads folder
I am using Capistrano to deploy my Rails application. whenever I deploy, changes would

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.