#!/bin/env node
//  OpenShift sample Node application
var express = require('express');
var fs      = require('fs');
var url     = require('url');
var http    = require('http');

var ip_address = process.env.OPENSHIFT_NODEJS_IP;
var port       = process.env.OPENSHIFT_NODEJS_PORT || 8080;

var app = express();
var server = http.createServer(app);

app.get('/test', function(req, res){
    console.log('we get a test get request');
    res.send('Hello World');
});
@@ -457,8 +457,43 @@
 d');%0A%7D);
+%0A%0Aserver.listen(port, ip_address);%0A

add nodejs server express