node-progress icon indicating copy to clipboard operation
node-progress copied to clipboard

it isn't work by using pm2

Open codejc opened this issue 6 years ago • 5 comments

when using pm2 to start the app.js, it isn't show in pm2 logs.Only useing node command to start it can i see the progress bar.

codejc avatar May 20 '18 09:05 codejc

+1

namezero avatar Jun 04 '18 01:06 namezero

running the pm2 in the foreground with --no-daemon flag, logs the progressbar, but you get one line each tick()

namezero avatar Jun 04 '18 23:06 namezero

Would be great to have pm2 support.

joshhopkins avatar Jan 23 '19 17:01 joshhopkins

Same problem, please fix this 🙏

Androz2091 avatar Oct 30 '19 10:10 Androz2091

pm2 is intended to run as a background, so - maybe I am missing something here, please do kindly help me - why does one need a progress bar on a log file?

Anyway it seems the progress bar uses by default as strem the stderr, check here.

Can you try using in options the standard output?

var bar = new ProgressBar(':bar', { total: 10, stream: process.stdout });

Or maybe check you pm2 error logs

jfoclpf avatar Aug 15 '20 10:08 jfoclpf