Permalink
Browse files

[dist] Expose default port and appname

  • Loading branch information...
1 parent 2e93566 commit 9ebcbd6fa9e03887ff24b68d6583c9c987e523f1 @alejandro alejandro committed Jun 15, 2012
Showing with 5 additions and 2 deletions.
  1. +1 −1 index.html
  2. +4 −1 server.js
View
@@ -102,7 +102,7 @@
</ul>
</div>
-<span id="local"> Running on node-<span id="version"></small></span>
+ <span id="local"> Running on node-<span id="version"></small></span>
</div>
</div>
View
@@ -1,4 +1,5 @@
/**
+ * APPNAME
* Default app for nodester
* @license MIT
*/
@@ -32,6 +33,8 @@ app.get('*', function(req,res){
res.end(':: not found ::');
});
-app.listen(process.env['app_port'] || 3000 , function(){
+var PORT = process.env['app_port'] || APPPORT;
+
+app.listen( PORT , function(){
console.log(':: nodester :: \n\nApp listening on port %s', this.address().port)
});

0 comments on commit 9ebcbd6

Please sign in to comment.