var _ = require('lodash');

var all = {
    // define nodejs runtime environment
    server: {
        port :      process.env.NODE_IP || 8080,          //OPENSHIFT_NODEJS_PORT
        host :      process.env.NODE_PORT || '127.0.0.1', //OPENSHIFT_NODEJS_IP
        staticDir : '/../../dist'
    },

    //secret encryption key
    secretKey: process.env.PP_SECRET_KEY,

    //Facebook oauth implementation
    facebook: {
        clientID: process.env.FB_CLIENT_ID,
        clientSecret: process.env.FB_CLIENT_SEC,
        callbackURL:  (process.env.DOMAIN || '') + '/api/v1/users/facebook/callback'
    },

    // MongoDB connection options
    mongo: {
      options: {
        db: {
          safe: true
        }
      }
    },

    // Should we populate the DB with sample data?
    seedDB: false
};

// Export the config object based on the NODE_ENV
// ==============================================
module.exports = _.merge(
  all,
  require('./' + process.env.NODE_ENV + '.js') || {});

@@ -124,15 +124,29 @@
 env.
-NODE_IP
+OPENSHIFT_NODEJS_PORT
  %7C%7C 
@@ -183,16 +183,27 @@
 EJS_PORT
+  //NODE_IP
 %0A       
@@ -231,17 +231,27 @@
 env.
-NODE_PORT
+OPENSHIFT_NODEJS_IP
  %7C%7C 
@@ -284,16 +284,31 @@
 ODEJS_IP
+    //NODE_PORT
 %0A       

Change port and host var