$ git clone git@github.com:wooyaggo/nonstop_server.git
then you need to install packages for project and global.
$ npm run init
Compile and run.
$ tsc
$ node bin
TypeScript will compile /src
into /bin
.
And run bin/index.js, it will make .restart
file for watching restart signal.
Update your code.
For instance, see /src/server.ts:22
, update fix
variable.
Then compile it.
$ tsc
Then you update .restart
file.
On Linux.
$ touch .restart
On Windows
$ echo "" >> .restart
Then server will be restart one by one in order without losing request already in progress.