I
I
ilovemaryjane2018-11-08 21:58:52
linux
ilovemaryjane, 2018-11-08 21:58:52

Is there a common practice in which directory to put Node applications on a Linux server?

I ran into difficulties that as the complexity of applications, configs, etc. grows, some kind of systematization is needed. Now I just dump everything into a /home/$USERdirectory, but this is not convenient, because. often in the configs you need to dynamically specify $USER and there is no way to transfer it there, you have to hardcode, and this is already bad and not convenient.
Surely there are practices where to dump the source code of applications? Not in the home directory, but somewhere like /var/www? It's clear that I can stuff it anywhere, but every place has a meaning.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Softer, 2018-11-08
@ilovemaryjane

/opt
Someone folds in
/srv

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question