title: Openshift not setting environment variable for node project
body: <p>I have a simple node project that I am trying to get deployed to Openshift Online 3 but having some ip and port problems.
  Reading the <a href="https://developers.openshift.com/languages/nodejs/environment-variables.html" rel="nofollow noreferrer">documentation</a> I need to get some environment variables from openshift system, seems legit. But Openshift doesn't seem to set the variables OPENSHIFT_NODEJS_PORT and OPENSHIFT_NODEJS_IP. </p>
  
  <p>Using the example below: </p>
  
  <pre><code>var express = require('express');
  var app = express();
  var server_ip_address = process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1'
  var port = process.env.OPENSHIFT_NODEJS_PORT || 1212
  
  console.log('environment_port: ' + process.env.OPENSHIFT_NODEJS_PORT);
  console.log('environment_ip: ' + process.env.OPENSHIFT_NODEJS_IP);
  
  app.listen(port, server_ip_address, function (err) {
      console.log('Running on port ' + port + ' ip: ' + server_ip_address);
  });
  </code></pre>
  
  <p>I get the following output from openshift logs:</p>
  
  <p><a href="https://i.stack.imgur.com/q9qo7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q9qo7.png" alt="enter image description here"></a></p>
  
  <p><strong>Why isn't Openshift Online 3 setting the system varaibles?</strong></p>