Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
doc: update instructions on home page
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bnoordhuis committed Feb 28, 2013
1 parent 82357b8 commit 522668b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ <h2>An example: Webserver</h2>
}).listen(1337, '127.0.0.1');
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">
% node example.js
Server running at http://127.0.0.1:1337/</pre>
Expand Down

0 comments on commit 522668b

Please sign in to comment.