Files
danmaku/README.md

41 lines
833 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Fly.io Express项目
包含如下子项目
- airportsub: 用于机场订阅
- danmaku用于弹幕解析
- ipinfo: 用纯真IP数据库查询IP信息
- tgbot: Telegram机器人
- schedule: 定时任务
# 依赖
- chai: 断言库
- mocha: 测试框架
- ejs: 模板引擎
- express: web框架
- lib-qqwry: 纯真IP数据库
# 部署到fly.io
``` sh
curl -L https://fly.io/install.sh | sh
export FLYCTL_INSTALL="/home/codespace/.fly"
export PATH="$FLYCTL_INSTALL/bin:$PATH"
flyctl auth login
flyctl deploy
```
# 性能提升
相比于旧版的Python项目Node对于异步并发的处理能力更强。
Express框架的性能也比Python的Django要好很多。
# fly.io常用命令
``` sh
flyctl scale count 0
flyctl regions add sea
flyctl regions remove nrt
```
# Node常用工具
```bash
npm outdated
npm update
```