Skip to content
New issue

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

cant get it to start with express 3.3.4 #44

Open
doapp-ryanp opened this issue Jul 26, 2013 · 1 comment
Open

cant get it to start with express 3.3.4 #44

doapp-ryanp opened this issue Jul 26, 2013 · 1 comment

Comments

@doapp-ryanp
Copy link

I get:

TypeError: Cannot read property 'app' of undefined
    at exports.enable (myapp/node_modules/cluster2/lib/ecv.js:37:30)

If i set ecv to false things work fine:

var c = new Cluster({
    port: app.get('port'),
    cluster: ('development' != app.get('env')),
    timeout: 500,
    ecv: false
});

Is this library even maintained anymore? If not I'd not like to waste my time trying to work through these issues

@chekun
Copy link

chekun commented Oct 22, 2013

don't create server your self, just do this

var app = express();

var cluster = new Cluster............;

cluster.listen(function(cb) {
    cb(app);
    logger.info("Web server listening on port " + app.get('port'));
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants