title: pm2 is not working in amazon ec2 with node application
body: <p>I have node application hosted in amazon ec2.
  I used nginx to point it in my domain.
  It runs perfectly when i use npm start to run the application.
  But when i use pm2, it doesnt work.</p>
  
  <p><a href="https://i.stack.imgur.com/13GDI.png" rel="nofollow noreferrer">pm2 list command shows that the app is running.</a></p>
  
  <p>But url doesn't work. Even when i again run npm start app gets started that clearly states that the port is free. So pm2 is not actually running anything on that port. But pm2 says app is online. </p>