Report this

What is the reason for this report?

How do I host 3 node apps with 3 different domains on one droplet?

Posted on May 7, 2014

Hello all. Stuck trying to setup up several Node apps on one droplet. I followed the Host Multiple Node.js Applications On a Single VPS with nginx, forever, and crontab article exactly.

I have the domains all pointed correctly and A records set.

I can’t seem to get apps to run (with forever) on any other port besides the default express 3000.

I changed the server_names_hash_bucket_size 64; (like it says) I created /etc/nginx/conf.d/example.com.conf for the apps (they are different domains. I put 1 on port 3000 and the other on 4000)

I don’t understand the difference between when Nginx is running the app and when forever is? Where does “npm start” come into play? How many potential servers are working at the same time?

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.