Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[dist] Expose default port and appname

  • Loading branch information...
commit 9ebcbd6fa9e03887ff24b68d6583c9c987e523f1 1 parent 2e93566
@alejandro alejandro authored
Showing with 5 additions and 2 deletions.
  1. +1 −1  index.html
  2. +4 −1 server.js
View
2  index.html
@@ -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
5 server.js
@@ -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)
});
Please sign in to comment.
Something went wrong with that request. Please try again.