Skip to content

Commit

Permalink
Use pm2 for deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
tapnisu committed Jan 20, 2024
1 parent 773b327 commit 9d2d69f
Show file tree
Hide file tree
Showing 2 changed files with 889 additions and 34 deletions.
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "dist/index.js",
"scripts": {
"start": "node .",
"start:node": "node .",
"pm2:start": "pm2 start . --name 'forwarding-discord-telegram' --exp-backoff-restart-delay=100",
"pm2:start:watch": "pm2 start . --name 'forwarding-discord-telegram' --watch --exp-backoff-restart-delay=100",
"pm2:stop": "pm2 stop .",
"build": "tsc",
"format": "npx prettier --write .",
"lint": "eslint ./"
Expand Down Expand Up @@ -42,6 +44,14 @@
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.2.4"
},
"peerDependencies": {
"pm2": ">=5.3.0"
},
"peerDependenciesMeta": {
"pm2": {
"optional": true
}
},
"engines": {
"node": ">=16.0.0"
},
Expand Down
Loading

0 comments on commit 9d2d69f

Please sign in to comment.