title: Bluemix Spring - Application must be listening on the right port
body: <p>I'm trying to deploy a Jhipster application (Spring Boot + AngularJS) to Bluemix Tomcat. However I always get this error:</p>
  
  <pre><code>Error restarting application: Start app timeout
  </code></pre>
  
  <p>TIP: The application must be listening on the right port. Instead of hard coding the port, use the <code>$PORT</code> environment variable.</p>
  
  <p>The complete error on Bluemix console is:</p>
  
  <pre><code>App instance exited with guid 1c76324f-57fb-4a00-b203-499519b4367c payload: 
  
  {
    "cc_partition"=&gt;"default",  
    "droplet"=&gt;"1c76324f-57fb-4a00-b203-499519b4367c",
    "version"=&gt;"0103e173-b6d3-4daa-a291-b5792c16b69b",
    "instance"=&gt;"0c09506c30764b6c921cabb9a55d9e45",
    "index"=&gt;0,
    "reason"=&gt;"CRASHED",
    "exit_status"=&gt;255,
    "exit_description"=&gt;"failed to accept connections within health check timeout",
    "crash_timestamp"=&gt;1479341938
  }
  
  Instance (index 0) failed to start accepting connections
  </code></pre>
  
  <p>I've already tried to change the <code>application-dev.yml</code> config to </p>
  
  <pre><code>server:
      port: ${VCAP_APP_PORT}
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>server:
      port: 80
  </code></pre>
  
  <p>However, I have not had any success. How can I pass the port variable to the Jhipster configuration?</p>