westy92/html-pdf-chrome

setting up pm2

artknight opened this issue · 4 comments

When setting up pm2 on ubuntu 20.04 I had to add --no-sandbox to the params to make it work.

Hope this helps

When setting up pm2 on ubuntu 20.04 I had to add --no-sandbox to the params to make it work.

Hope this helps

thanks how can i add args can u pls give an example...

@adhil-bit all you have to do is add it to the general params you are already setting. Look at the bottom of the example below

Ex.

pm2 start google-chrome \
  --interpreter none \
  -- \
  --headless \
  --disable-gpu \
  --disable-translate \
  --disable-extensions \
  --disable-background-networking \
  --safebrowsing-disable-auto-update \
  --disable-sync \
  --metrics-recording-only \
  --disable-default-apps \
  --no-first-run \
  --mute-audio \
  --hide-scrollbars \
  --remote-debugging-port=<port goes here>
  --no-sandbox

Thanks alot bro.. Worked for me...

Thank you @artknight!