//  _____             _____     _
// |  _  |___ ___ ___| __  |___| |
// |   __| . |   | . | __ -| . |  _|
// |__|  |___|_|_|_  |_____|___|_|
//               |___|

'use strict';

var mongoose = require('mongoose');
var mongoUri = process.env.MONGOLAB_URI || process.env.MONGOHQ_URL || 'mongodb://localhost/pingpong';
mongoose.connect(mongoUri);

var app = require('./lib/app').instance();

var port = process.env.PORT || 3000;
app.listen(port);
console.log('Listening on port', port);

@@ -228,93 +228,213 @@
 i = 
-process.env.MONGOLAB_URI %7C%7C process.env.MONGOHQ_URL %7C%7C 'mongodb://localhost/pingpong'
+'mongodb://' + process.env.OPENSHIFT_MONGODB_DB_USERNAME%0A    + ':' + process.env.OPENSHIFT_MONGODB_DB_PASSWORD%0A    + process.env.OPENSHIFT_MONGODB_DB_HOST  + ':'%0A    + process.env.OPENSHIFT_MONGODB_DB_PORT
 ;%0Amo
@@ -500,24 +500,24 @@
 nstance();%0A%0A
-
 var port = p
@@ -527,16 +527,33 @@
 ess.env.
+OPENSHIFT_NODEJS_
 PORT %7C%7C 

Add OpenShift specific config.