keymetrics / pm2-logrotate

Automatically rotate all applications logs managed by PM2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

howto: how can pm2-logrotate be used or made portably

cdaringe opened this issue · comments

problem

  • i need to ship my service as a standalone artifact, meaning i cannot pm2 install on the host that my service gets deployed to
    • by the time my service gets deployed, i no longer have network access from the host.

discussion

  • how can pm2 logrotation be made portable?

I hope it will be of use to you.

cd  ~/.pm2/node_modules/pm2-logrotate
pm2  install  .

@qualc you are awesome - thanks!