Skip to content

Commit f208ab2

Browse files
committed
feat: breaking changes in canis scripts, this is to address issues with pm2
1 parent dc4d000 commit f208ab2

5 files changed

Lines changed: 5 additions & 23 deletions

File tree

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,10 @@ Canis supports multiple AI providers out of the box:
3636

3737
## Getting started
3838

39-
0. **Fork repo**
40-
41-
Click [https://github.com/mrepol742/project-canis/fork](https://github.com/mrepol742/project-canis/fork) to fork this repo.
42-
4339
1. **Clone repo**
4440

4541
```sh
46-
git clone https://github.com/<your-username>/project-canis.git
42+
git clone https://github.com/mrepol742/project-canis.git
4743
cd project-canis
4844

4945
```
@@ -70,7 +66,7 @@ Canis supports multiple AI providers out of the box:
7066
5. **Start bot**
7167

7268
```sh
73-
npm run start
69+
npm run dev
7470
```
7571

7672
#### Docker & Production
@@ -104,7 +100,6 @@ Canis supports multiple AI providers out of the box:
104100
2. **Start**
105101

106102
```
107-
cd dist
108103
pm2 start ecosystem.config.js
109104
```
110105

@@ -119,7 +114,6 @@ Canis supports multiple AI providers out of the box:
119114
2. **Start**
120115

121116
```
122-
cd dist
123117
npm run start
124118
```
125119

ecosystem.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
instances: 1,
77
exec_mode: "fork",
88
node_args: "--max-old-space-size=2048",
9+
env_file: ".env",
910
env: {
1011
NODE_ENV: "production",
1112
},

example/index.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

package-lock.json

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
"main": "src/index.ts",
77
"scripts": {
88
"build": "tsc",
9-
"start": "clear && while [ true ]; do npm run canis ; done",
10-
"canis": "ts-node src/index.ts"
11-
},
12-
"bin": {
13-
"client": "./dist/index.js"
9+
"start": "clear && while [ true ]; do node dist/index.js ; done",
10+
"dev": "clear && while [ true ]; do ts-node src/index.ts ; done"
1411
},
1512
"author": {
1613
"name": "Melvin Jones Repol",

0 commit comments

Comments
 (0)