Zen
Zen

Reputation: 5520

Why is my node.js helloworld application on nitrous not working?

I have read the tutorial many times. I copied the code and paste it. Still, there is no "Port 3000" under the "Preview" menu. The Preview URL is 404.

If I run wget 127.0.0.1:3000, the response message is ok. enter image description here

Upvotes: 0

Views: 33

Answers (1)

ajhit406
ajhit406

Reputation: 1405

Some of the starter templates automatically expose ports, but it looks like the template you selected doesn't automatically expose ports for you.

You can click the "Configure Ports" item in the Preview Menu, then add port 3000 (make sure you tick the "Preview" checkbox):

https://community.nitrous.io/docs/port-configuration

Hope that helps!

Upvotes: 0

Related Questions