You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 months ago | |
|---|---|---|
| .vscode | 2 months ago | |
| internal | 2 months ago | |
| packages | 2 months ago | |
| scripts | 2 months ago | |
| .bunfig.toml | 2 months ago | |
| .env.example | 2 months ago | |
| .gitignore | 2 months ago | |
| README.md | 2 months ago | |
| bun.lockb | 2 months ago | |
| package.json | 2 months ago | |
| tsup.config.ts | 2 months ago | |
README.md
基于koa实现的简易ssr
试试grpc,实现node与python通信,扩展更多的功能。
https://grpc.org.cn/docs/languages/node/quickstart/ https://www.doubao.com/chat/23869592666505474
要求
bun < 1.2.0
1) 生成迁移(根据 schema 变更生成 SQL 到 packages/server/drizzle)
bun run --cwd packages/server db:generate # 生成迁移文件
2) 推送/迁移(任选其一)
bun run --cwd packages/server db:push # 直接将 schema 同步到 DB(简单场景) bun run --cwd packages/server db:migrate # 执行已生成的迁移脚本(更可控)
3) 部署阶段(CI/CD)
bun run --cwd packages/server deploy:migrate # 在部署容器/机器执行迁移