Report this

What is the reason for this report?

How to view node app on server...

Posted on April 4, 2015

Hello, I am pretty new to this, I have a node.js droplet and I am trying to view my app as I would do in local development (i.e : node app.js). I tried to find info on how to do it but uncessfully.

I have my super admin user, I have the right permissions to my var/www folder… I cmd to the folder and try running the cmd : node app.js and then navigate to my registered domain and no results…

anyone has a clue for me I’m really confused.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Without more information about your app it’s hard to give a good answer this question. Most likely, your app is configured to run on a non-standard port by default. In that case, you need to visit:

http://your.ip.address:port-number

Most node frameworks respect the PORT environmental variable. Running:

PORT=80 node app.js

should make it available directly at http://your.ip.address

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.