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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:53:02+00:00 2026-06-11T18:53:02+00:00

I have a git repository both on GitHub and on my private Amazon instance

  • 0

I have a git repository both on GitHub and on my private Amazon instance and with a unique commit I update both.

There is a way to commit the file database.yml only to my private repository and not on GitHub?

If could help, I’m using Capistrano for deployment.

  • 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-11T18:53:04+00:00Added an answer on June 11, 2026 at 6:53 pm

    In the past days I found no answer to this question, but then I solved my problem, so I’ll say what I’ve done to have things working.

    Since I don’t have to modify the file database.yml, I solved my problem manually copying it to my Amazon instance and adding it to .gitignore.

    Then, I added a task in deploy.rb to link database.yml to the current directory of deployment

    # copy db config
    after "deploy:update_code", :copy_db_config
    desc "copy db config file"
    task :copy_db_config do
      run "ln -s ~/path/where/I/copied/database.yml #{release_path}/config/database.yml"
    end
    

    Hope this help.

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

Sidebar

Related Questions

I have a git repository (at github.com) with two branches: master and gh-pages. I
I currently have a git repository at github that stores the packaging files for
I have a Git repository that is accessed from both Windows and OS X,
I have a Hudson server, and a git repository, both running on our server
So here's the situation. I have a git repository with multiple submodules. Both the
I have a git repository with 2 branches: master and test. There are differences
I have repository on both github.com and bitbucket.org, and I am very familiar using
Suppose I have Git repository like this: git-repo/ directory_1/ directory_2/ directory_3/ This has a
I have a git repository - including different tech. Android and iPhone. The folder
I have a git repository that I'm trying to delete all files and folders

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.