I’m running 4 separate Node.js apps on a Linux server with different ports and a proxy in front.
As I’m (right now) the only user in the server, it doesn’t matter where I place the apps and how to run them. Currently my apps stay under my home directory (~/app1/, ~/app2/, etc.).
So my question is: where should I place the apps so that they can be shared between multiple users? Is there a standard place similar to /var/www?
I use https://github.com/visionmedia/deploy to deploy my apps. It will create a
/var/www/productnamedirectory. Inside that directory you have source, current and shared. The shared directory has thelogandpidfiles.I found that a good directory structure so that’s what I am using for all my projects.