Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

pm2 run next js

// in the Folder next.js run the cmd below

# for development
pm2 start npm --name "next" -- run dev

# for production
npm run build
pm2 start npm --name "next" -- start
 
PREVIOUS NEXT
Tagged: #run #js
ADD COMMENT
Topic
Name
9+2 =