Browse Source

doc: update instructions on home page

Document how to run the example on the home page in more detail.

Apparently our Windows brethren are prone to double-clicking on the
binary instead of running it from the command line.

Fixes #4854.
v0.8.22-release
Ben Noordhuis 12 years ago
parent
commit
522668b5d9
  1. 4
      doc/index.html

4
doc/index.html

@ -89,7 +89,9 @@ http.createServer(function (req, res) {
}).listen(1337, '127.0.0.1'); }).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');</pre> console.log('Server running at http://127.0.0.1:1337/');</pre>
<p>To run the server, put the code into a file <code>example.js</code> and execute it with the <code>node</code> program:</p> <p>To run the server, put the code into a file
<code>example.js</code> and execute it with the
<code>node</code> program from the command line:</p>
<pre class="sh_none"> <pre class="sh_none">
% node example.js % node example.js
Server running at http://127.0.0.1:1337/</pre> Server running at http://127.0.0.1:1337/</pre>

Loading…
Cancel
Save