Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

  1. 安装UV

    存在系统Python:
    pip install uv
    
    不存在系统Python 
    先安装uv: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    再通过uv安装python: uv python install 3.12
      
    参考: https://docs.astral.sh/uv/getting-started/installation/#__tabbed_1_1
  2. 生成uv环境

    uv sync
    uv run uvicorn main:app
  3. 安装包

    uv add pytest --dev
  4. 启动

    测试环境: uvicorn src.main:app --reload
    测试环境: fastapi dev
    生产环境: fastapi run
  5. 同步包

    uv sync
  6. 安装hook

      pre-commit install
  7. RabbitMQ 升级说明

    • 旧版本声明的交换机默认为非持久化(durable=False),当前版本使用持久化交换机(durable=True)。
    • 已启用 RabbitMQ 的环境从旧版本升级时,必须先删除旧交换机(名称默认 exchange_<app_name>_<app_env>),否则首次启动会返回 406 PRECONDITION_FAILED。
    • 删除交换机后,消费者启动时会重新声明交换机并重建绑定。

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages