Node app not working in openshift
<p>I am running a HAPI node server to serve my js codebase. The server seems to run fine. However hitting The url throws a 503 error.</p>

<pre><code>const store = configureStore();
const initialState = store.getState();

//from environment variable grab our data and the backend data
const hostname = process.env.OPENSHIFT_NODEJS_IP;
const port = process.env.OPENSHIFT_NODEJS_PORT;
const restHostUrl = process.env.SERVER_URL || "localhost";
const restHostProtocol = process.env.SERVER_PROTOCOL || "http";
const restHostPort = process.env.SERVER_PROTOCOL || "1337";

//creating hapi server - popping my cherry with hapi on this one - im more of an express kinda guy.
const server = new Server();
server.connection({host: hostname, port: port});
server.register(
  [
    h2o2,
    inert,
    // WebpackPlugin
  ],
  (err) =&gt; {
  if (err) {
    throw err;
  }

  server.start(() =&gt; {
    console.info("==&gt; ✅  Server is listening");
    console.info("==&gt;   Go to " + server.info.uri.toLowerCase());
  });
});
...
</code></pre>