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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:06:42+00:00 2026-05-18T12:06:42+00:00

Does anybody know a listing of all build-in Capistrano variables, like current_path and etc.?

  • 0

Does anybody know a listing of all build-in Capistrano variables, like current_path and etc.?

  • 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-18T12:06:43+00:00Added an answer on May 18, 2026 at 12:06 pm

    You can find all of them at:

    https://github.com/capistrano/capistrano/blob/legacy-v2/lib/capistrano/recipes/deploy.rb

    Update: v3 no longer has the same configuration options as v2. I linked the v2 config options above, but the v3 has the following:

    Capistrano configuration variables

    Here are the legacy ones, preserved in this post:

    # =========================================================================
    # These variables MUST be set in the client capfiles. If they are not set,
    # the deploy will fail with an error.
    # =========================================================================
    
    _cset(:application) { abort "Please specify the name of your application, set :application, 'foo'" }
    _cset(:repository)  { abort "Please specify the repository that houses your application's code, set :repository, 'foo'" }
    
    # =========================================================================
    # These variables may be set in the client capfile if their default values
    # are not sufficient.
    # =========================================================================
    
    _cset(:scm) { scm_default }
    _cset :deploy_via, :checkout
    
    _cset(:deploy_to) { "/u/apps/#{application}" }
    _cset(:revision)  { source.head }
    
    _cset :rails_env, "production"
    _cset :rake, "rake"
    
    # =========================================================================
    # These variables should NOT be changed unless you are very confident in
    # what you are doing. Make sure you understand all the implications of your
    # changes if you do decide to muck with these!
    # =========================================================================
    
    _cset(:source)            { Capistrano::Deploy::SCM.new(scm, self) }
    _cset(:real_revision)     { source.local.query_revision(revision) { |cmd| with_env("LC_ALL", "C") { run_locally(cmd) } } }
    
    _cset(:strategy)          { Capistrano::Deploy::Strategy.new(deploy_via, self) }
    
    # If overriding release name, please also select an appropriate setting for :releases below.
    _cset(:release_name)      { set :deploy_timestamped, true; Time.now.utc.strftime("%Y%m%d%H%M%S") }
    
    _cset :version_dir,       "releases"
    _cset :shared_dir,        "shared"
    _cset :shared_children,   %w(public/system log tmp/pids)
    _cset :current_dir,       "current"
    
    _cset(:releases_path)     { File.join(deploy_to, version_dir) }
    _cset(:shared_path)       { File.join(deploy_to, shared_dir) }
    _cset(:current_path)      { File.join(deploy_to, current_dir) }
    _cset(:release_path)      { File.join(releases_path, release_name) }
    
    _cset(:releases)          { capture("#{try_sudo} ls -x #{releases_path}", :except => { :no_release => true }).split.sort }
    _cset(:current_release)   { releases.length > 0 ? File.join(releases_path, releases.last) : nil }
    _cset(:previous_release)  { releases.length > 1 ? File.join(releases_path, releases[-2]) : nil }
    
    _cset(:current_revision)  { capture("#{try_sudo} cat #{current_path}/REVISION",     :except => { :no_release => true }).chomp }
    _cset(:latest_revision)   { capture("#{try_sudo} cat #{current_release}/REVISION",  :except => { :no_release => true }).chomp }
    _cset(:previous_revision) { capture("#{try_sudo} cat #{previous_release}/REVISION", :except => { :no_release => true }).chomp if previous_release }
    
    _cset(:run_method)        { fetch(:use_sudo, true) ? :sudo : :run }
    
    # some tasks, like symlink, need to always point at the latest release, but
    # they can also (occassionally) be called standalone. In the standalone case,
    # the timestamped release_path will be inaccurate, since the directory won't
    # actually exist. This variable lets tasks like symlink work either in the
    # standalone case, or during deployment.
    _cset(:latest_release) { exists?(:deploy_timestamped) ? release_path : current_release }
    
    _cset :maintenance_basename, "maintenance"
    _cset(:maintenance_template_path) { File.join(File.dirname(__FILE__), "templates", "maintenance.rhtml") }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anybody know of a free flash obfuscator(protector)? All I can find are commercial
Does anybody know a provider offering TV listings (through API or download) for all
does anybody know what are for PG and GG variables here: module sum(S, Cout,PG,GG,A,B,Cin);
Does anybody know sources in internet where described how to build an android application
does anybody know how to insert code into lyx? just like what is available
does anybody know a comfortable way for getting all contacts and all of their
Does anybody know any reasons why IMemAllocator:GetBuffer (Directshow) hangs, apart from all samples being
Does anybody know of or have a detailed list of how the BCL in
Does anybody know, how to get a list of leaf nodes in Prolog? Let's
Does anybody know whether one exists? I've been googling this for monthes... Thanks

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.