In my package.json
file I have two scripts, start
and production
, start
script is for local development while production
script is for deployment. Using npm i would just do npm run production
but how do I do this with pm2
I got it, the command is pm2 start npm --name=app-name -- run production
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With