mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 08:32:16 +01:00
As noted in the Dockerfile, the previous route to install pm2 was broken at some point. As a result, pm2 related files are now being copied over from an image created prior to the breakage. This change now installs pm2 via npm, which is the recommended route for this. A small adjustment had to be made in the processManager code; an argument was being passed with a space in it. For reasons that I've not been able to fully trace, this no longer works. It should be noted that passing arguments in this way can result in undesirable behaviour - in this case I believe "--interpreter none" was being passed as a single argument, rather than "--interpreter", "none". I've adjusted this to use an equals - splitting into 2 separate strings works well too.