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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:58:45+00:00 2026-05-28T04:58:45+00:00

I try to run my first Rails 3 app on vds. So, i decided

  • 0

I try to run my first Rails 3 app on vds. So, i decided to use capistrano for that. Also i have Phusion passenger, Nginx, RVM and ruby 1.9.3 there.

I use this link as tutorial – https://github.com/capistrano/capistrano/wiki/2.x-From-The-Beginning

So, when i print

cap deploy:check

Then everything ok:

* executing `deploy:check'
  * executing "test -d /vol/www/apps/ror_tutorial/releases"
    servers: ["188.127.224.136"]
Password: <my password>
    [188.127.224.136] executing command
    command finished in 87ms
  * executing "test -w /vol/www/apps/ror_tutorial"
    servers: ["188.127.224.136"]
    [188.127.224.136] executing command
    command finished in 63ms
  * executing "test -w /vol/www/apps/ror_tutorial/releases"
    servers: ["188.127.224.136"]
    [188.127.224.136] executing command
    command finished in 72ms
  * executing "which git"
    servers: ["188.127.224.136"]
    [188.127.224.136] executing command
    command finished in 65ms
You appear to have all necessary dependencies installed

But when i try to do next step:

cap deploy:update

I receive strange error:

  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "git ls-remote git@github.com:Loremaster/sample_app.git master"
    command finished in 4097ms
  * executing "git clone -q git@github.com:Loremaster/sample_app.git /vol/www/apps/ror_tutorial/releases/20120118170908 && cd /vol/www/apps/ror_tutorial/releases/20120118170908 && git checkout -q -b deploy f0cf5d0141c80ab82d9191e72aabeddb8cf6e552 && (echo f0cf5d0141c80ab82d9191e72aabeddb8cf6e552 > /vol/www/apps/ror_tutorial/releases/20120118170908/REVISION)"
    servers: ["188.127.224.136"]
Password: <my password>
    [188.127.224.136] executing command
 ** [188.127.224.136 :: out] Permission denied (publickey).
 ** fatal: The remote end hung up unexpectedly
    command finished in 1573ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /vol/www/apps/ror_tutorial/releases/20120118170908; true"
    servers: ["188.127.224.136"]
    [188.127.224.136] executing command
    command finished in 63ms
failed: "sh -c 'git clone -q git@github.com:Loremaster/sample_app.git /vol/www/apps/ror_tutorial/releases/20120118170908 && cd /vol/www/apps/ror_tutorial/releases/20120118170908 && git checkout -q -b deploy f0cf5d0141c80ab82d9191e72aabeddb8cf6e552 && (echo f0cf5d0141c80ab82d9191e72aabeddb8cf6e552 > /vol/www/apps/ror_tutorial/releases/20120118170908/REVISION)'" on 188.127.224.136

How can i fix that?

Here is my config/deploy.rb:

set :user, "root"

default_run_options[:pty] = true                                             
set :repository,  "git@github.com:Loremaster/sample_app.git"

set :application, "ror_tutorial"
set :deploy_to, "/vol/www/apps/#{application}"

set :scm, :git
set :branch, "master"


server "188.127.224.136", :app,
                          :web,
                          :db, :primary => true

namespace :passenger do
  desc "Restart Application"
  task :restart do
    run "touch #{current_path}/tmp/restart.txt"
  end
end

after :deploy, "passenger:restart"
  • 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-28T04:58:45+00:00Added an answer on May 28, 2026 at 4:58 am

    You need to use the public repository address (unless you want to give GitHub your server’s ssh key, which you shouldn’t):

    set :repository, "git://github.com/Loremaster/sample_app.git"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple Rails 3.1.rc6 app that I'm using to try to test
I try to run my project in windows. Project use android ndk. I install
Every time I try to run a small application that uses a Derby DB
I'm creating my first ROR application. Details: creating new app -> rails new simple_cms
I have a rails model that I am adding validations to and I seem
I'm attempting to run a RoR app locally for the first time. I've started
First time I install RoR app based on PostgreSQL database and after run the
I'm trying to deploy a rails 3 app to heroku for the first time.
I have a basic rails3 app that I am deploying on site5. I have
I try to run a simple test following RailsGuides instructions . I have a

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.