title: Why am I still getting R10 error when trying to deploy an Express app
body: <p>I am trying to host an Express app on Heroku, but I keep getting the error: <code>Error R10 (Boot timeout) -&gt; Web process failed to bind to $PORT within 60 seconds of launch</code></p>
  
  <p>When I tried to find a solution, I found a bunch of pages saying that heroku dynos use a dynamic port, and that it can be accessed with <code>process.env.PORT</code> as well as that you had to listen at the address <code>0.0.0.0</code>. I've done both of these things, and the program logs what I assume is the correct port on startup, but it still gives me the error. All of the people I've found who still had this error after fixing the port have either figured out how to fix it yet, or had some other issue that didn't apply here.</p>
  
  <p>For now, I'm just trying to host a simple program, the code for which can be seen below.
  </p>
  
  <pre><code>const express = require("express")
  let app = express()
  
  app.get("/", (req,res) =&gt; {
      res.send("testing")
  })
  
  const PORT = (process.env.PORT | 8080)
  
  app.listen(PORT, "0.0.0.0", () =&gt; {
      console.log(`listening on port *: ${PORT}`)
  })
  </code></pre>