victormejia victormejia - 1 month ago 4x
Node.js Question

deploying Node.js app for production

Most of the tutorials I've come across, you set up a Node.js web app by setting the server to listen on a port, and access it in the browser by specifying that port.. However, how would I deploy a Node.js app to be fully accessible by say a domain like


You have to bind your domain's apex (naked domain) and usually www with your web server's ip or it's CNAME.

Since you cannot bind apex domain with CNAME, you have to specify server IP or IPs or load balancers' IPs