title: How can I configure PM2 for angular-cli app
body: <p>Referring to this:
  <a href="https://stackoverflow.com/questions/39314654/how-can-i-run-pm2-with-angular-cli-angular2/39315665">How Can I run PM2 with Angular-Cli? - Angular2</a></p>
  
  <p>Is it possible to run pm2 configuration with angular-cli?</p>
  
  <p>Something like this - 
  pm2.json:</p>
  
  <pre><code>{
  "apps": [{
      "name": "my-app",
      "script": "./usr/bin/ng serve",
      "instances": "1",
      "error_file"      : "err.log",
      "out_file"        : "out.log",
      "merge_logs"      : true,
      "log_date_format" : "YYYY-MM-DD HH:mm Z",
      "env": {
        "NODE_ENV": "development"
      },
      "env_production" : {
        "NODE_ENV": "production"
      }
  }]
  </code></pre>
  
  <p>}</p>
  
  <p>From command line this command works:
  <strong>pm2 start /usr/bin/ng -- serve --prod</strong></p>
  
  <p>but this doesn't:
  <strong>pm2 start pm2.json</strong></p>