On Oct 15, 2014, at 1:03 PM, Clarkie <[email protected]> wrote:
> I'm happy with the installation of nodejs itself; my question is around where > to put our actual js files. > > Does anyone have any suggested locations and reasons why they use them? > > We've considered /usr/local and /opt but I'm not a linux or node expert so > I'd love to hear your thoughts. Node apps tend to be isolated, because of how node's module system works -- everything in one directory. That means that each app tends to be its own directory; that naturally lends itself to being put in /opt/appname for each. That's not set in stone -- it's perfectly appropriate to live in the directory of a service user that runs it, or in /var/ or just about any place. Node's not picky, the technical distinctions are pretty minimal. It depends on what your js files _do_, really. Aria -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/C2DD938E-C8B0-4676-951B-2D239F2B18F3%40nbtsc.org. For more options, visit https://groups.google.com/d/optout.
