Created
March 6, 2022 11:45
-
-
Save rajuAhmed1705/e11d2c599004ea21eb1115ed4fc6c224 to your computer and use it in GitHub Desktop.
pm2-script for nextjs and nodejs
This file contains hidden or 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
| { | |
| "apps": [ | |
| { | |
| "name": "app-name-one",//express js app | |
| "cwd": "/directory/of/the/app", | |
| "script": "dist/server.js", | |
| "post_update": ["npm install", "npm run build"] | |
| }, | |
| { | |
| "name": "app-name-two", //next js app | |
| "cwd": "/directory/of/the/app", | |
| "script": "npm -- start", | |
| "post_update": ["npm install", "npm run build"] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment