express-spawner
v0.0.3
Published
Spawns Express apps on multiple ports as different processes.
Downloads
13
Readme
Synopsis
- Spawn Express apps or middleware on multiple ports as seperate processes.
- Use with NGINX or your favorite load balancer.
- Master process restarts a child process if it's terminated.
Code Example
npm install express-spawner
var es = require('express-spawner')(process.cwd()+'/');
es.spawnServerForever({
ports: [9001, 9002, 9003],
appPath: 'sampleApp.js',
});
TODO
- [ ] Return Promise when servers are up
- [ ] Pretty debug logs
- [ ] Tests