Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[docs] Update http example for changed api.

  • Loading branch information...
commit af276a957ee74467d371a182aee68e4a8e60a024 1 parent fec55e3
Charlie McConnell authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  examples/http.js
7  examples/http.js
@@ -2,8 +2,13 @@
2 2
 var prefork = require('../lib/prefork');
3 3
 var http = require('http');
4 4
 
5  
-prefork();
  5
+prefork({
  6
+  stdout: 'out.log',
  7
+  stderr: 'err.log'
  8
+});
6 9
 
7 10
 http.createServer(function (req, res) {
  11
+  console.log('stdout still running.');
  12
+  console.error('stderr still running.');
8 13
   res.end('I am still running');
9 14
 }).listen(9090);

0 notes on commit af276a9

Please sign in to comment.
Something went wrong with that request. Please try again.