Question

Hosting more than one Node.JS bot on a single droplet

Hello, I am fairly new to this hosting business. I am currently making Discord and Twitter bots using Node.JS. I have one that uses a mongo database and one that will use SQLite. They each have their own accounts. My question is, will I be able to run them both at the same time on a single droplet? Or will I need to get two droplets?

Subscribe
Share

Submit an 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.

This comment has been deleted

Yes, you can run multiple Node.JS applications on single Droplet. You just need to make sure they’re not running on the same port, but as long as they aren’t, you can.

For that, you can use something such as pm2, to easily manage applications. Check out the How To Set Up a Node.js Application for Production on Ubuntu 16.04 to learn how to use pm2 to manage your applications.