How to start pm2 website using jenkins on AWS ubuntu server?
<p>I set up <strong>Jenkins</strong>, <strong>pm2</strong> on <strong>AWS ubuntu</strong> server. I had a website <strong>A</strong> that built by <strong>jenkins</strong>. The <strong>jenkins</strong> then will start that website by <strong>pm2</strong> in the configured shell. However, only I start the website by logging on to the <strong>ubuntu</strong> server manually and run <code>pm2 start A</code> can make the website running.</p>

<p>The problem seems that <strong>pm2</strong> started by user <strong>jenkins</strong> will <strong>not</strong> be visible by the outside world. Only started by user <strong>ubuntu</strong> (via ssh ubuntu@myubuntuserver) can be effectively public.</p>

<p>Why and how can I make <strong>jenkins</strong> start <strong>pm2</strong> automatically?</p>