mirror of
https://github.com/pacnpal/markov-discord.git
synced 2025-12-20 11:01:04 -05:00
Add pm2 to non-docker run
This commit is contained in:
@@ -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
2724
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user