Add pm2 to non-docker run

This commit is contained in:
Charlie Laabs
2022-01-09 17:27:34 -06:00
parent a6a81b0211
commit 2237d344b7
3 changed files with 2727 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ Running this bot in Docker is the easiest way to ensure it runs as expected and
```sh
# NPM install non-development packages
npm ci --only=production
npm ci
# Build the Typescript
npm run build
# Initialize the config

2724
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,7 @@
"description": "A conversational Markov chain bot for Discord",
"main": "dist/index.js",
"scripts": {
"start": "NODE_ENV=production node dist/index.js",
"start": "NODE_ENV=production pm2 start --no-daemon dist/index.js",
"start:ts": "ts-node src/index.ts",
"build": "rimraf dist && tsc",
"lint": "tsc --noEmit && eslint **/*.ts *.js",
@@ -65,6 +65,7 @@
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"pm2": "^5.1.2",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"ts-node": "^10.4.0",