title: Sync database configurations from php file to node.js file
body: <p>I want to manage my database connections more efficiently.</p>
  
  <p>As of now I have a <code>database.php</code> file in my php code repo which is getting changed very frequently (once in a day).</p>
  
  <p>I am looking for an efficient solution to manage my node <code>database.js</code> file so that when ever some IP or user name gets changed in <code>database.php</code>, that should also get reflected in<code>database.js</code> file.</p>
  
  <p>The node server should restart when <code>database.js</code> is updated, at that time.</p>
  
  <p>Currently I am managing this with a Bash script that runs every 10 minutes.</p>
  
  <p>Is there a better way?</p>