Skip to content

wooyaggo/nonstop_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restart without stopping server.

How to use.

$ git clone git@github.com:wooyaggo/nonstop_server.git

then you need to install packages for project and global.

$ npm run init

Using

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 without stopping.

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.

About

Update without stopping server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published