1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-12 23:45:57 +00:00

Maing staging work again

This commit is contained in:
Scott Tolksdorf
2016-08-09 13:28:45 -04:00
parent 73e561beba
commit 34b21703e1
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ app.use(bodyParser.json({limit: '25mb'}));
//Mongoose
var mongoose = require('mongoose');
var mongoUri = process.env.MONGODB_URI || 'mongodb://localhost/naturalcrit';
var mongoUri = process.env.MONGODB_URI || process.env.MONGOLAB_URI || 'mongodb://localhost/naturalcrit';
mongoose.connect(mongoUri);
mongoose.connection.on('error', function(){
console.log(">>>ERROR: Run Mongodb.exe ya goof!");