title: How do I make CakePHP 3 detect production vs live servers? To disable Debugkit
body: <p>What I do is I set debugkit to false in bootstrap.php</p>
  
  <pre><code>if (Configure::read('debug')) {
  Plugin::load('DebugKit', ['bootstrap' =&gt; false]); 
  }
  </code></pre>
  
  <p>hen I push that to my live server and gitignore bootstrap.php. Then I enable it to true on my localhost</p>
  
  <p>The problem is if I modify bootstrap.php my changes aren't being  recorded due to gitignore. I know there must be a better way thanks!</p>