title: Json not updating in github repo
body: <p>So, I have some JSON that is updated while the code is being ran, And I notice that it updates when ran on my machine but not when I host the code, For Hosting I use heroku and I use github as the repository. Im sure it has something to do with a configureation issue as you cannot just update code without commiting it in git, the issue im having is How do I get the JSON to update in github.
  I am using Node.js and Fs (filesystem)
  Example: code.js</p>
  <pre><code>const fs = require('fs');
  if(true) {
  const content = {&quot;name&quot;: &quot;joe&quot;};
   fs.writefilesync('./some.json', JSON.stringify(content),{flag: 'w+'});
  /* 
  on my machine this works perfectly as it should, 
  however when i cloud host it, the JSON doesnt update.
  */
  };
  </code></pre>