Skip to content

Commit

Permalink
fixes mongolab config var
Browse files Browse the repository at this point in the history
  • Loading branch information
Bradley Johnson committed Apr 12, 2016
1 parent bfb7bad commit a42bfa7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var path = require('path');

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

if (!databaseUri) {
console.log('DATABASE_URI not specified, falling back to localhost.');
Expand Down Expand Up @@ -53,4 +53,3 @@ httpServer.listen(port, function() {

// This will enable the Live Query real-time server
ParseServer.createLiveQueryServer(httpServer);

0 comments on commit a42bfa7

Please sign in to comment.