Skip to content
Lance Vo edited this page Apr 15, 2016 · 1 revision

Use PM2 to run NPM script task

credit: https://github.com/Unitech/pm2/issues/1317

pm2 start npm --name "{app_name}" -- run {script_name}

{app_name} : the name is shown in pm2
run and {script_name} are optional

Clone this wiki locally