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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:29:02+00:00 2026-06-14T13:29:02+00:00

Sorry for the rather a silly question but do people commit their Capistrano files

  • 0

Sorry for the rather a silly question but do people commit their Capistrano files (Capfile, deploy.rb, multisite > config/deploy/*) to their private scm repos?

Is there a best practice or standard that people follow? What do you follow?

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-14T13:29:03+00:00Added an answer on June 14, 2026 at 1:29 pm

    A best practice is “yes”, commit your deploy.rb, but don’t commit any files containing passwords, api_keys, or other private data — instead make those files templates, e.g. in database.yml commit the file with database name, port, username, but something like

    password: <db_password>
    

    to create a template file.

    Obviously, if your project is in a public repo like GitHub, then has it right. But if your SCM is private, as you say, you should treat it like any other secured resource. Passwords and keys are more than “any other secured resource” — they should be highly secured.

    For a fully self-configuring system, create capistrano (or perhaps rake) tasks that read a carefully controlled local file (maybe YAML) having various passwords or keys, and once committed files are deployed, write the passwords to into the templates.

    If passwords or the formats of configuration files don’t change a lot, you can use the cap:setup task, then manually add passwords, leave them in the app/shared/config directory and have capistrano create a symlink within the source tree at deployment.

    When it comes to deployment, this is something only a highly-privileged user should be performing (especially to production). This practice allows you to make passwords and other sensitive data visible only to users who have been granted access to a given server.

    Ryan Bates did some good RailsCasts on strategies like this, check out some of these episodes. Note, many RailsCasts are no longer free, but for $9/month, this well worth it!

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

Sidebar

Related Questions

Sorry if this question is too vague, but I'd rather not muddy it's point
Sorry for the rather subjective question, but I was hoping to get an opinion
Sorry for the rather ignorant question, but I'm a bit confused regarding these two
First of all, sorry if this is an obvious question, but I'm rather new
sorry for my rather general question, but I could not find a definite answer
Sorry, I think I'm being rather silly and overlooking something basic, but I'm just
Sorry to bug twice so quickly, but since people were so kind in their
Sorry for this rather basic question, but I have to get some sort of
Sorry for asking a rather n00b question, I am rather new to ASP.NET MVC.
Sorry for question but I can't find answer anywhere on internet. I couldn't find

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.