Node.js and goes into sleep.

October 10, 2014 1.4k views

Hey, I am new to Linux and heavy website setups in general (by heavy I mean everything manually, prior to this I just used Wamp or some shared hosting which had cp etc..)
So anyway:
I created a mini chat using Node.js and, when I launch chat server from terminal it works fine, after I close terminal and leave website, it goes into offline mode after some time, as in - I cannot access page anymore.

How do I keep connection/service - alive/running?

Oh and second question while I am at it:
Is it possible to log all messages going through socket into database? (in my case - chat messages). Thanks.

1 comment
Be the first one to answer this question.