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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.