How can i run ionic1 app with pm2 like technology? I want it being served from server all the time

where in the files should I make the change ?