How to mount express.js sub-apps?

app.use(uri, instanceOfExpressServer)

Just make sure you don’t call .listen on it.

The alternative is to use require("cluster") and invoke all your apps in a single master so that they share the same port. Then just get the routing to “just work”

Leave a Comment