Read the statement by Michael Teeuw here.
Change Folder of Logs of PM2 and NPM
-
@sdetweil but you know, a RAMDisk is volatile, I can’t copy something to a RAMDisk in forehand…it is gone after a reboot.
-
@thgmirror then u will have to create target folder on boot…
note that pm2 stores config info in there too(the jobs it manages) … so it MUST be persistent
but you could just link the logs folder from the users real .pm2 folder (the stuff that is volatile…)
well, logs are useful but…
-
@sdetweil and where is the PM2 start?
Of course it must be persistant, but I don’t want to change the location of the PM2-configuration. -
@thgmirror someplace in the .pm2 folder… no idea myself…
the .pm2/logs folder I know
never examined the others
-
@thgmirror and there is a $HOME/.npm folder for npm, but I have no idea what all is stored there, and what needs to be persistent and not