Skip to content

Commit

Permalink
Merge pull request parse-community#15 from didierfranc/patch-1
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
gfosco committed Feb 1, 2016
2 parents a72b743 + e3c08ff commit 506b17b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var http = require('http');

var databaseUri = process.env.DATABASE_URI || process.env.MONGOLAB_URI

Expand Down Expand Up @@ -33,7 +32,6 @@ app.get('/', function(req, res) {
});

var port = process.env.PORT || 1337;
var httpServer = http.createServer(app);
httpServer.listen(port, function() {
console.log('parse-server-example running on port ' + port + '.');
app.listen(port, function() {
console.log('parse-server-example running on port ' + port + '.');
});

0 comments on commit 506b17b

Please sign in to comment.