title: pm2 script execution path is incorrect, doesn't match the one in ecosystem.config.js
body: <p>My ecosystem.config.js looks like this:</p>
  
  <pre><code>module.exports = {
  apps: [{
      name: 'production',
      script: '/home/username/sites/Website/source/server.js',
      env: { NODE_ENV: 'PRODUCTION' },
      args: '--run-server'
  }, {
      name: 'staging',
      script: '/home/username/sites/WebsiteStaging/source/server.js',
      env: { NODE_ENV: 'STAGING' },
      args: '--run-server'
  }],
  deploy: {
      production: {
          user: 'username',
          host: ['XXX.XXX.XX.XXX'],
          ref: 'origin/production',
          repo: 'git@github.com:ghuser/Website.git',
          path: '/home/username/sites/Website',
          'post-deploy': 'npm install &amp;&amp; pm2 reload ecosystem.config.js --only production',
          env: { NODE_ENV: 'PRODUCTION' }
      },
      staging: {
          user: 'username',
          host: ['XXX.XXX.XX.XXX'],
          ref: 'origin/staging',
          repo: 'git@github.com:ghuser/Website.git',
          path: '/home/username/sites/WebsiteStaging',
          'post-deploy': 'npm install &amp;&amp; pm2 reload ecosystem.config.js --only staging',
          env: { NODE_ENV: 'STAGING' }
      }
  }
  };
  </code></pre>
  
  <p>When I deploy the application, I expect to see two processes - one called 'production' and one called 'staging'. These run code from the same repo, but from different branches.</p>
  
  <p>I do see two processes, however, when I run <code>pm2 desc production</code> I can see that the script path is <code>/home/username/sites/WebsiteStaging/source/server.js</code>. This path should be <code>/home/username/sites/Website/source/server.js</code> as per the config file. </p>
  
  <p>I've tried setting the script to <code>./server.js</code> and using the <code>cwd</code> parameter but the result has been the same.</p>
  
  <p>The deploy commands I am using are <code>pm2 deploy production</code> and <code>pm2 deploy staging</code> and I have verified that both the <code>Website</code> and the <code>WebsiteStaging</code> folders are present on my server.</p>
  
  <p>Is there something I'm missing here? Why would it be defaulting to the staging folder like this?</p>