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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:48:32+00:00 2026-06-17T16:48:32+00:00

Why does CakePHP put app/Config in .gitignore by default? I understand putting app/tmp in

  • 0

Why does CakePHP put app/Config in .gitignore by default?

I understand putting app/tmp in .gitignore, and also understand why they’ve put the root /plugins and /vendors directorys, since they are intended for plugins and vendors that are shared across multiple projects. But why app/Config? I would have thought that contains exactly the kind of stuff you DO want in version control, such as database.php and bootstrap.php.

  • 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-17T16:48:33+00:00Added an answer on June 17, 2026 at 4:48 pm

    I’d imagine it would have something to do with the database configs are actually what you DONT want in version control.

    Imagine If you have the database config file in your git repo, and someone pulls, they will have YOUR database settings, then they will edit the database config file to suit their needs, and now it just becomes a game of table tennis with database.php files. And quite frankly that would be very very, annoying.

    I mean, if everyone has the same config settings, it would work and might be a tad handy, but who has all the database configs across machines?

    bootstrap.php on the other hand i’ll somewhat agree with, since the bootstrapping is usually for a project and the project relies on those dependencies. Although that being said, what if you want to use different plugins for different environments? Such as using sendgrid.com to send emails on your development copy, and using SMTP on the live server?

    In my opinion its just simpler to leave the config directory ignored. It leaves the configuration to the developer.

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

Sidebar

Related Questions

Does CakePHP have support for APC, XCache and others?
Does anyone know any good ordering and sorting behaviours for cakephp? The sort where
Why does this code run differently in CakePHP vs. a normal PHP file? <?php
does anyone know if there is a VALIDATE function for a form in cakePHP
When baking a model with CakePHP, why does it prompt for hasOne if it
Problem is about CakePhp. If I give permission to required directories CSS does not
I am having trouble installing a cakephp app onto a hosting company this is
How does cakephp handle a get request? For instance, how would it handle a
How does CakePHP deal with tables that don't have an id column? HABTM is
Im new to cakePHP, and Im wondering how a 'live' site does this. I

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.