aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-09-02 18:27:50 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-09-02 18:27:50 +0000
commit7cdf16da2fc7e1bd510310f2cc1a5d65aa5c5643 (patch)
treebd7593256c98d89d2e08829932b386b2c9f07945 /app.js
parent61b0f64f2e6c5e79ebf6c3df85cddc96c1ac2836 (diff)
Minor fixes
Diffstat (limited to 'app.js')
-rw-r--r--app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.js b/app.js
index 74354b4..a7de862 100644
--- a/app.js
+++ b/app.js
@@ -18,7 +18,7 @@ var http = require('http');
var server = http.createServer(app);
var io = require('socket.io')(server);
-var port = '3000';
+var port = normalizePort(process.env.PORT || '3000');
app.set('port', port);
var routes = require('./routes/index');
@@ -105,7 +105,7 @@ app.use(function(error, req, res, next) {
dbFile.setupDB(function (success, mssg) {
if (success) { // db establiseh
server.listen(port, function(){ // now accept connections
- console.log('listening on port 3000');
+ console.log('listening on port 8080');
});
}
else {