Browse Source

doc: Add NODE_DEBUG env to the first example.

The first example in cluster.markdown requires NODE_DEBUG env to show
debug message.

And also fix the message because it was a little bit different with
the actual message.
v0.9.8-release
Yi EungJun 12 years ago
committed by isaacs
parent
commit
33d22428fb
  1. 9
      doc/api/cluster.markdown

9
doc/api/cluster.markdown

@ -33,10 +33,11 @@ all share server ports.
Running node will now share port 8000 between the workers:
% node server.js
Worker 2438 online
Worker 2437 online
% NODE_DEBUG=cluster node server.js
23521,Master Worker 23524 online
23521,Master Worker 23526 online
23521,Master Worker 23523 online
23521,Master Worker 23528 online
This feature was introduced recently, and may change in future versions.
Please try it out and provide feedback.

Loading…
Cancel
Save