Skip to content

Commit

Permalink
Hello: Switch to different ports for apps.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-roemer committed Mar 20, 2012
1 parent c32e003 commit c1c1676
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ <h2>Hooking up Heroku</h2>
</ul>
</section>

<section class="slide" id="example-app">
<section class="slide" id="hello-app">
<h2>Hello World!</h2>
<p>Here is everyone's <em>first</em> Node.js application:</p>
<div>
<div id="code" name="code" class="code" mode="javascript" style="display: none;"
>var http = require('http');
Expand All @@ -196,8 +197,17 @@ <h2>Hello World!</h2>
'content-type': "text/html"
});
res.end("<h1>Hello World!</h1>")
}).listen(2000);</div>
}).listen(2001);</div>
</div>
<br /><br />
<p>
Let's try it in
<a href="http://127.0.0.1:2001">development</a>...
</p>
<p>
And, let's see a <em>slightly</em> more
<a href="http://127.0.0.1:2000">enhanced version</a>...
</p>
</section>

<section class="slide" id="deploy-app">
Expand Down
2 changes: 1 addition & 1 deletion server-hello.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ http.createServer(function (req, res) {
'content-type': "text/html"
});
res.end("<h1>Hello World!</h1>")
}).listen(2000);
}).listen(2001);

0 comments on commit c1c1676

Please sign in to comment.