Here, i will show you how to works deploy yarn app using pm2. this example will help you pm2 yarn start keep run app. i explained simply step by step pm2 yarn start forever. We will look at example of pm2 start yarn script. Let’s see bellow example pm2 deploy yarn app.
few days ago i need to run forever my react app using yarn command. i know run command using “yarn start”, but i don’t know how to deploy it with pm2 command. so you can do it using bellow command:
pm2 start yarn --interpreter bash --name api -- start
above command will start react app using yarn command forever.
i hope it can help you…
65