I have a node app and I can run it on localhost as [IP ADDRESS]:3000, but how do I get it to run forever just as [IP ADDRESS]? A little confused on how this works
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!
So would I need to do something like this? https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04
You can use apache, nginx, haproxy, or the like and reverse proxy from [IP ADDRESS] -> [INTERNAL IP]:3000 (With Internal IP being locally - 127.0.0.1). You can also change the port of your app to make it use 80 so when someone enters the IP (or domain if its an A record) it will go to the web page of your app without having to define the port within the URL
Browsers default to port 80 for HTTP and 443 for HTTPS, changing your server’s port (whether it’s Node.js or something else) to port 80 should do the trick.
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.