0

I'm following this tutorial and using Cloud9, but when I run node index.js I can't seem to find it.

I've looked at these two posts, but neither seem to work for me. Am I just following their instructions wrong?

Community
  • 1
  • 1
Pro Q
  • 4,391
  • 4
  • 43
  • 92
  • Please give more detailed explanation. Things such as: `what was the full error printed`, `what was the expected outcome`, `what was the actual outcome`. Also post any screenshots and code snippets you think are relevant. – Mutahhir May 30 '16 at 13:29
  • 1
    Also note that Cloud9 only forwards servers listening on `0.0.0:8080` (and also ports `8081` and `8082`). In the above examples, the code is using 3000 which might be the problem here. – Mutahhir May 30 '16 at 13:30

1 Answers1

0

I needed to set the server to listen on 8080 (as Mutahhir suggested) and then point my web browser to http://workspacename.username.c9.io (as Kendell mentioned on another question). Make sure that its an http connection, not an https connection.

To set the server to listen on 8080, you just change 3000 to 8080 in the index.js file.

Then, the "Hello World" shows up as it's supposed to.

Community
  • 1
  • 1
Pro Q
  • 4,391
  • 4
  • 43
  • 92