title: Setup node.js App for pubblication with PM2
body: <p>I have a node.js application that uses the python-shell module. When I start the app with the command: <em>node server.js</em> everything works well, including Python scripts. If I try to start the application with the <em>pm2 start logs server</em> command, Python scripts do not work and I get a lot of errors on PythonShell, Object.callPythonScript.</p>
  
  <p>Does anyone know how to fix and how does the application normally work with the node compiler, but not with pm2?</p>
  
  <p>This is the logs error:</p>
  
  <p><a href="https://i.stack.imgur.com/kgwjj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kgwjj.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/t6WbQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t6WbQ.png" alt="enter image description here"></a></p>