egg
egg copied to clipboard
🥚 Born to build better enterprise frameworks and apps with Node.js & Koa
### 请详细告知你的新点子(Nice Ideas): 我项目装了 egg-socket.io,然后我部署到宝塔都是开了几秒就自己停止了,是不是还得配置什么啊
### 在此输入你需要反馈的 Bug 具体信息(Bug in Detail): https://stackoverflow.com/questions/49837932/sequelize-query-or-ing-where-and-include-statements 看一下这个文档,我想用 sequelize 做一样的查询操作但是看了半天文档也不清楚在egg.js里怎样来用。 我的 model 定义如下: ``` app.model.Blog.belongsTo(app.model.Relation, { foreignKey: "userId", targetKey: "followerId", as: "follower", }); ``` 查询时候的代码如下: ``` include: [ { model:...
### 请详细告知你的新点子(Nice Ideas): 官方文档中查询是这么写的: ``` const results = await this.app.mysql.select('posts', { // 搜索 post 表 where: { status: 'draft', author: ['author1', 'author2'] }, // WHERE 条件 columns: ['author', 'title'], //...
### 在此输入你需要反馈的 Bug 具体信息(Bug in Detail): 使用npm init egg --type=simple创建基本项目,cnpm i安装依赖,npm run dev启动但是。 2023-03-16 11:40:15,602 ERROR 11107 nodejs.Error: create "Watcher" leader failed, the port:57357 is occupied by other 一直回报错,不断重试,这个端口会变化,但是还是报错。大概重试十几二十次随机到一个可用端口就能启动成功。 macos版本...
### 请详细告知你的新点子(Nice Ideas): https://github.com/anc95/ChatGPT-CodeReview/blob/main/README.zh-CN.md
### 请详细告知你的新点子(Nice Ideas): https://github.com/lucaong/minisearch 看起来需要自己组织数据。
### 在此输入你需要反馈的 Bug 具体信息(Bug in Detail): ``` $ yarn dev:backend yarn run v1.22.19 $ cd packages/backend && yarn dev $ egg-bin dev --framework=../../../node_modules/egg 2023-03-13 22:17:55,310 INFO 21464 [master] node version...
### 在此输入你需要反馈的 Bug 具体信息(Bug in Detail): ``` egg-core@^5.3.0: version "5.3.0" dependencies: "@eggjs/router" "^2.0.0" "@types/depd" "^1.1.32" "@types/koa" "^2.13.5" co "^4.6.0" debug "^4.1.1" depd "^2.0.0" egg-logger "^3.1.0" egg-path-matching "^1.0.1" extend2 "^1.0.0" get-ready...
### Enter your suggestions in details: 要实现一个动态读取数据库账号和密码,想通过agent 来获取,然后写到一个js文件,work线程就可以直接加载使用,但是egg-sequelize 插件 agent下 也会加载,这个能删掉吧,删掉会有什么影响
不是bug!只是对此有点疑惑,希望有人能够帮助一下,不清楚是哪里配置有问题。 1. 一开始链接 egg-mongoose 是正常的,但是经过了一两天之后,就会偶尔出现 disconnect 报错 [egg-mongoose] mongodb://xxxxxx disconnected 53863 has failed with connection to xxxxx timed out config.mongoose = { client: { url: 'mongodb://xxxxxxxx?authSource=admin&compressors=zlib', options: { useUnifiedTopology: true,...