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

  • Home
  • SEARCH
  • 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 7711359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:21:21+00:00 2026-06-01T01:21:21+00:00

after first deploy with set :deploy_via, :copy for make changes in app now I’m

  • 0

after first deploy with set :deploy_via, :copy for make changes in app now I’m using:

set :deploy_via, :remote_cache

each time that I update changes make a new release but not remove the old releases.

I can see in releases folder:

20120325165324  20120326132816  20120326150033  20120326150716  20120326151632  20120326161602  20120326171203

I want only have 3 o 5 releases maximum.

I have in my deploy.rb:

set :keep_releases, 5

but this is does not works for me.

How can I remove old releases after deploy with set :deploy_via, :remote_cache

Thank you!

  • 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-01T01:21:22+00:00Added an answer on June 1, 2026 at 1:21 am

    You also need to either manually run cap deploy:cleanup, or simpler, just call in from within your deploy script via a callback, e.g. add this to deploy.rb

    after "deploy:restart", "deploy:cleanup" 
    

    which says, “when the restart task of deployment is complete, then run the cleanup task”. The default for :keep_releases is 5, so you don’t really need to add it … but it doesn’t hurt.

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

Sidebar

Related Questions

I want to deploy a website the first time using Rails 3.2.1 with capistrano
I need to invoke getoptlong multiple times, but after the first time ARGV is
Can you deploy a Rails3 app using Bundler's Gemfile WITHOUT running bundle install ...
I deploy Django apps using a fabric script that checks out a copy of
Is the idea after the first resolution it'll rely on OS caching? Still this
How do I retrieve all elements after the first one not starting with a
Sqlldr is corrupting my primary key index after the first commit in my ctl
Since C# doesn't have a before,after,last,first etc. as part of its foreach. The challenge
I'm looking to run a second batch command from .bat but after the first
I got the problem that the if-statement doesn't work. After the first code line

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.