Permalink
Browse files

Added ejs dependency, changed port to variable process.env.PORT

  • Loading branch information...
balis committed Mar 20, 2012
1 parent e3b7e65 commit 2bb1634352c22fc4d4e665004b948f6c3ab5d370
Showing with 4 additions and 3 deletions.
  1. +2 −2 app.js
  2. +2 −1 package.json
View
4 app.js
@@ -25,7 +25,7 @@ else {
// global data
var contentType = 'text/html';
-var baseUrl = 'http://localhost:3000/microblog/';
+var baseUrl = 'http://0.0.0.0:'+process.env.PORT+'/microblog/';
// Configuration
@@ -385,6 +385,6 @@ function badRequest(res) {
// Only listen on $ node app.js
if (!module.parent) {
- app.listen(3000);
+ app.listen(process.env.PORT);
console.log("Express server listening on port %d", app.address().port);
}
View
@@ -3,6 +3,7 @@
"version": "0.0.1",
"dependencies": {
"express": "",
- "cradle": ""
+ "cradle": "",
+ "ejs": ""
}
}

0 comments on commit 2bb1634

Please sign in to comment.