Report this

What is the reason for this report?

How to Deploy Multiple Apps from Separate Folders within User Home Directory?

Posted on October 1, 2019

I’m attempting to host multiple applications (one node and one static–thus far) from my droplet. Therefore I would like to be able to have separate folders within my home directory (home/kev) for each–for example: home/kev/website1.com and home/kev/website2.com. However, my node.js app only works if the server files are directly in home/kev and if I put them within a subfolder of kev, I get 'Error: ENOENT: no such file or directory, stat ‘/home/kev/server/public/index.html’ I need to be able to direct DO to the correct folder, but I’m not even sure how it know’s to look within kev in the first place, so debugging has been fruitless. I would love any help with this, thanks in advance!

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.