I made a simple Node.js server and deployed it to Heroku that serves a dead simple HTML form that returns submitted value to
fs.writeFile('./users.json',JSON.stringify(dataArr,null,4),(err)=>{
if(err){console.log(err);}
console.log('file saved');
});
In Heroku's logs I can see "new file written" but I can't find a way to retrieve the saved information from the users.json
file. When I try to do a pull request from Heroku, it says that everything is already up to date, even though in Heroku logs I can see "new file written".
How can I see the change in my users.json
file?