var express = require('express');
var packageInfo = require('./package.json');
var bodyParser = require('body-parser');

var app = express();
app.use(bodyParser.json());

app.get('/', function (req, res) {
  res.json({ version: packageInfo.version });
});

var server_ip_address = process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1';
var server = app.listen(process.env.OPENSHIFT_NODEJS_PORT, server_ip_address, function () {
  console.log('Web server started');
});

module.exports = function (bot) {
  app.post('/' + bot.token, function (req, res) {
    bot.processUpdate(req.body);
    res.sendStatus(200);
  });
};

@@ -264,22 +264,22 @@
 rver
-_ip_address = 
+ = app.listen(
 proc
@@ -307,118 +307,113 @@
 EJS_
-IP %7C%7C '127.0.0.1';%0Avar server = app.listen(process.env.OPENSHIFT_NODEJS_PORT,
+PORT, %220.0.0.0%22, function () %7B%0A  var host = server.address().address;%0A  var port =
  server
-_ip_
+.
 address
-, function () %7B
+().port;
 %0A  c
@@ -442,17 +442,45 @@
  started
-'
+ at http://%25s:%25s', host, port
 );%0A%7D);%0A%0A

Teste com openshift