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.

Howdy y’all,
I was following the Getting started after deploying NodeJS guide provided after setting up a Node.js Droplet and trying to get my personal website deployed. While I was trying to schedule my app.js to pm2, I encountered the following error:
root@DropletProjName:~/danaimone.com# sudo -u nodejs pm2 start app.js
[PM2][ERROR] Script not found: /root/danaimone.com/app.js
If I try to do a pm2 start app.js while logged in as root, without switching to the nodejs user, it adds fine. Unfortunately, this problem is interfering with deployment to the web since the nodejs user handles pm2 directly. I’m not sure if it’s because the folder is cloned on root and pm2 is not able to get the specific path. I tried an absolute path (/root/danaimone.com/app.js, /root/danaimone.com/app) to no success. I would appreciate any help y’all can provide on this!
wildcatmediagrp
jeffs
0621335d663b4b699a60eb27e28153
accesstrax
Dwight Trumbower
admin
yimprogramming
samunyi90
1d6ce141ab5444dfb1ea2dd29cf4b1
Matt Fricker
joel9b158e40551b15093f213f