-
-
Save williamtran29/4e57c1f0d987de0d1d841bc9bc2dde8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for development | |
pm2 start npm --name "next" -- run dev | |
# for production | |
npm run build | |
pm2 start npm --name "next" -- start | |
"scripts": { | |
"start": "node ./node_modules/.bin/pm2 start app.js -i max --attach" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment