title: Get request in openshift node js app
body: <p>I'm building an openshift node js app which has to communicate with youtube data API. Its deployment is a success when I do "git push" with the require commented.</p>
  
  <pre><code>    /*
      var request = require('request');
      */
  </code></pre>
  
  <p>When I uncomment it, I get this error :</p>
  
  <pre><code>remote: Waiting for application port (8080) become available ...
  remote: Application 'eln' failed to start (port 8080 not available)
  remote: -------------------------
  remote: Git Post-Receive Result: failure
  remote: Activation status: failure
  remote: Activation failed for the following gears:
  remote: 573c3e177628e146d400004e (Error activating gear: CLIENT_ERROR: Failed to execute: 'control start' for /var/lib/openshift/573c3e177628e146d400004e/nodejs
  </code></pre>
  
  <p>Am I doing it bad? How can I fix it?</p>
  
  <p>thank you.</p>
  
  <p>Edit 1: Adding listening code, I didn't modify it (it was already here when I've created the app).</p>
  
  <pre><code>    self.ipaddress = process.env.OPENSHIFT_NODEJS_IP;
      self.port      = process.env.OPENSHIFT_NODEJS_PORT || 8080;
  
      /**
       *  Start the server (starts up the sample application).
       */
      self.start = function()
      {
          //  Start the app on the specific interface (and port).
          self.app.listen(self.port, self.ipaddress, function()
          {
              console.log('%s: Node server started on %s:%d ...', Date(Date.now() ), self.ipaddress, self.port);
          });
      };
  </code></pre>