Website won't start


#1
Error 502 - Bad Gateway .error_content { background: rgba(255, 255, 255, 0.23); padding: 10px; width: 641px; margin: 25px 0; display: none; }
#error-msg {
    display: block;
}
</style>

Error 502 - Bad Gateway

Please click here to try again, if the issue persists please contact support

  <a href="http://status.c9.io">Status Page</a> |
  <a href="https://c9.io/support">Support</a> |
  <a href="https://c9.io/dashboard.html">Dashboard</a> |
  <a href="https://c9.io">Home</a>
</div>

#2

Please make sure you’re running your application server through IP 0.0.0.0 and port 8080. This is required to run servers on Cloud9; if you need additional ports, 8081 and 8082 also work, but will require you to specify the port number in the preview URL.


#3

Hi Bryce

The course I am following instructs me to use this in my nodejs app:

app.listen(process.env.PORT, process.env.IP, function(){
console.log(“Server is running…”);
});

It was working fine. Why would it suddenly stop working?
How can I use the format above to supply an IP of 0.0.0.0 and a port of 8080?
Is this actually the problem?