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

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

I’ve just set up my droplet according to this MEAN.JS tutorial and configured to use a non-root user per this tutorial. The first says that if I already have an application build on the MEAN stack (I do), I should git clone it into /opt/. This of course causes fatal: could not create work tree dir 'visigraph'.: Permission denied, since I’m not running as root or sudoing.
Now of course I could just sudo it, but then I believe I would also have to run the server as root, which is obviously bad from a security standpoint. So is /opt/ just the wrong place to run my server out of? Or should I just chown the cloned project dir? What are the security implications? I’ve never dealt with setting up the permissions side of a server, and am not familiar with what each of the root dirs in Linux are intended for.
SandyDarkBlueRay
khanpham1995
FriendlyBlueGreenSnorkler
FriendlyBlueGreenSnorkler
divyapp
merinannajoseph
sukhramsah504
G4G4N
grifinf
Tauhidul Alam
infoc8fa8380fc94a1aac6aa70
harshm