How to launch with pm2 and webhook

amazon-alexa

#1

hi
how to make this commande in pm2 ?

node index.js --webhook

when I use
pm2 index.js --webhook

it return unknow option ‘–webhook’


#2

From the pm2 docs https://pm2.keymetrics.io/docs/usage/pm2-doc-single-page/#start-an-app

pm2 index.js -- --webhook


#3

hi
it 's not work because pm2 seems not take filename as arguments


#4

pm2 start index.js -- --webhook