title: Passing environment variable to pm2 is not working
body: <p>I have two API in node js using babel and I have a package.json commands to use to make the application working this is the commands:</p>
  
  <pre><code>"build": "del-cli dist/ &amp;&amp; babel src -d dist --copy-files",
  "serve": "cross-env NODE_ENV=production node dist/index.js",
  "start:noupdate": "cross-env NODE_ENV=development babel-node src/index.js",
  "start:serve": "cross-env NODE_ENV=production node dist/index.js",
  </code></pre>
  
  <p>I have two domains one is <a href="https://api.website1.com.br" rel="noreferrer">https://api.website1.com.br</a> and another is <a href="https://website2.com.br/api" rel="noreferrer">https://website2.com.br/api</a>.</p>
  
  <p>They have the same env file name but with another data for each database, that is <strong>.env.production and .env.development</strong></p>
  
  <p>When I make this "yarn build", my Linux execute this command :</p>
  
  <pre><code>"build": "del-cli dist/ &amp;&amp; babel src -d dist --copy-files",
  </code></pre>
  
  <p>And this is working fine when I try to put in production mode on my real webservers, i go to the folder from the project and run this command to make the app online with PM2:</p>
  
  <pre><code>pm2 start npm -- run-script start:serve NODE_ENV=production
  </code></pre>
  
  <p>That will make this command work:</p>
  
  <pre><code>"cross-env NODE_ENV=production node dist/index.js"
  </code></pre>
  
  <p>The app runs just fine, but I have a problem he only runs one and doesn't create a new PM2 APP he just restarts what I start.</p>
  
  <p>Example if I go to the folder in my <a href="https://api.website1.com.br" rel="noreferrer">https://api.website1.com.br</a> and run this command first in this he starts, but I go to the another he doesn't start that but reload my already early app don't create a new one, what I'm doing wrong?</p>