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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:56:02+00:00 2026-06-09T04:56:02+00:00

I am using capistrano to deploy my rails app into my ec2 server but

  • 0

I am using capistrano to deploy my rails app into my ec2 server but the deployment takes around 10 minutes and stucks in one step for almost 9 minutes line 95% of the time and i dont know the reason…

here is the log

  * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "git ls-remote . HEAD"
    command finished in 6ms
  * getting (via checkout) revision 3100b6f25e4551fadaa64c11852e3839ff1eafc1 to /var/folders/nt/pr84tk8s1pqbj97l4mjz9gsm0000gn/T/20120801082840
    executing locally: git clone -q . /var/folders/nt/pr84tk8s1pqbj97l4mjz9gsm0000gn/T/20120801082840 && cd /var/folders/nt/pr84tk8s1pqbj97l4mjz9gsm0000gn/T/20120801082840 && git checkout -q -b deploy 3100b6f25e4551fadaa64c11852e3839ff1eafc1
    command finished in 18422ms
  * Compressing /var/folders/nt/pr84tk8s1pqbj97l4mjz9gsm0000gn/T/20120801082840 to /var/folders/nt/pr84tk8s1pqbj97l4mjz9gsm0000gn/T/20120801082840.tar.gz
    executing locally: tar czf 20120801082840.tar.gz 20120801082840
    command finished in 2662ms
    servers: ["50.112.250.177"]
 ** sftp upload /var/folders/nt/pr84tk8s1pqbj97l4mjz9gsm0000gn/T/20120801082840.tar.gz -> /tmp/20120801082840.tar.gz
    [50.112.250.177] /tmp/20120801082840.tar.gz

so as you see on the last line it takes too much time to do this .tar.gz … i guess its gzip compression but why it takes too much time?

in another fresh project it takes almost 1 minute or less to deploy… this project only has a few controllers and shouldn’t be that slow…

*im on a mac and deploy to ubuntu

  • 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-06-09T04:56:03+00:00Added an answer on June 9, 2026 at 4:56 am

    A 10 mins deployment is definitely something you could optimize. I thinks the connection speed is low.

    One improvement could be to use a different deployment strategy. If your repository is reachable from the app server (e.g. GitHub, private repo) you may deploy via remote cache. Add the following setting to the config/deploy.rb

    set :deploy_via, :remote_cache
    

    Instead of checking out the repo locally, compressing it and sending it via sftp, capistrano checks out the repository directly on the app server and subsequently pulls changes only.

    You have to use set up a deployment ssh key if you are using a private repository.

    Find more information on GitHub’s capistrano page (not only related to GitHub).

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

Sidebar

Related Questions

I'm trying to deploy my Rails app to my webhost (DreamHost) using Capistrano but
I'm using Subversion and Capistrano to deploy my rails app. Part of the organization
I have a Ruby on Rails 3.2 app using bundler and capistrano for deployment.
I've managed to deploy my app to production using Capistrano, but I don't understand
I am trying to deploy rails website on ec2 using capistrano, everything works flawlessly
I am currently deploying a Rails application using Capistrano. Cap deploy:update_code usually works just
I want to deploy a website the first time using Rails 3.2.1 with capistrano
I am trying to implement ruby on rails app using Capistrano, I am running
I am deploying my first rails app using passenger and capistrano. every thing is
I am using Capistrano to deploy a ruby on rails project. I am attempting

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.