Skip to content

Instantly share code, notes, and snippets.

@spac3unit
Last active April 14, 2020 16:54
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save spac3unit/b66f74c353c0e5d1dfb2df1c60b6f737 to your computer and use it in GitHub Desktop.
Save spac3unit/b66f74c353c0e5d1dfb2df1c60b6f737 to your computer and use it in GitHub Desktop.
# 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"
}
@medmin
Copy link

medmin commented Sep 16, 2019

how about ecosystem.config.js ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment