I am trying to run a node app from AWS Cloud9 EC2 instance. When I run the app with
node app.js, it starts, but the client does not seem to get to it. When I do
sudo node app.js, it works fine.
Now, I want to use supervisor for auto-restart on code edit, and I am not able to figure out how to do that. How to run supervisor with sudo ? And why am I needing sudo ? I am accessing my webapp over port 3000, which I explicity opened using a custom TCP rule in AWS EC2 instance security group.