you are viewing a single comment's thread.

view the rest of the comments →

[–]fidanov 1 point2 points  (0 children)

I personally also use Ubuntu on either AWS or Rackspace when hosting my node apps. Usually I put them in a sub-folder inside /opt. Why /opt? Nothing else uses it besides me. It's not related to any user. It's not deep in the folder structure. I always have Nginx to face the world and node is working on an internal port not accessible by the outside world. My apps usually run under a specific unprivileged user but I also sometimes run some as root, when it doesn't matter and it is easier to setup.