Nodejs exit after time and files are getting reset
eliyah (1)

i have a nodejs repl that handles my chat program when i quit nodejs normally it saves the data to the file something like [DATA,DATA,DATA] but when the repl has run for a long time its quit (which i hope it dont do) and then it saves like only [] to the file i want the repl to stay awake longer and too SAVE THE FILES.

Here is the repl https://repl.it/@eliyah/chatti-Backup-Server and why it says backup is for my server before crashed (hosted on repl.it too) and i couldn't get it to start so a made a new repl with same code and same issue with saving. Note that I have get same issues with saving on other nodejs servers

You are viewing a single comment. View All
Vandesm14 (483)

@eliyah It is pretty simple to setup, just copy the code from https://repl.it/languages/express and paste it into your repl. Then install the packages "express" and "body-parser". After that, you're all set!