We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Continually getting this port conflict error:
Error: listen EADDRINUSE: address already in use :::55475
Using this basic code to start:
const throng = require('throng') const WORKERS = process.env.WEB_CONCURRENCY || 5 ... function startProdApp() { var app = require('../app'); let port = process.env.PORT; function onListen() { console.log('Listening on', port) } app.listen(port, onListen) } if(process.env.NODE_ENV === 'development'){ startApp() } else { throng({ master: startProdApp(), worker: startProdApp(), count: WORKERS, lifetime: Infinity }) }
Heroku won't fork it appears - throng requires declaring the master and worker functions now https://github.com/hunterloftis/throng/blob/master/examples/complex.js
if (typeof worker !== 'function') { throw new Error('Start function required'); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Continually getting this port conflict error:
Error: listen EADDRINUSE: address already in use :::55475
Using this basic code to start:
Heroku won't fork it appears - throng requires declaring the master and worker functions now https://github.com/hunterloftis/throng/blob/master/examples/complex.js
The text was updated successfully, but these errors were encountered: