Browse Source

wherever I was

windhamdavid 4 years ago
parent
commit
ac5acd506a
2 changed files with 8 additions and 3 deletions
  1. 0 0
      config.js
  2. 8 3
      server.js

+ 0 - 0
config.js


+ 8 - 3
server.js

@@ -2,15 +2,20 @@ var build = require('./build');
 var express = require('express');
 var app = express();
 
-var config = require('./env.json')[process.env.NODE_ENV || 'development'];
+//var config = require('./config.json')[process.env.NODE_ENV || 'development'];
 
 var env = process.env.NODE_ENV || 'development';
 if ('development' == env) {
-   
+   //Changed for Express 4
 }
+
+
+
 app.use(express.static(__dirname + '/build'));
 
+var port = process.env.PORT || 3000;
+
 app.listen(process.env.PORT, function(){
-  console.log('Server running at http://localhost:' + process.env.PORT + '');
+  console.log('running at http://localhost:' + process.env.PORT + '');
 });