- VOLCANO_ARK_API_KEY / VIDEO_ARK_API_KEY → 新账号 ark-2e6b8833(视频与素材库同账号,保 asset:// 人脸引用可解析) - ASSETS_API_ACCESS_KEY/SECRET_KEY → 新账号 AKLTOTgz.../TTJZ...(Patrick 提供,已连通性实测) - ASSETS_API_PROJECT_NAME int_dev_Airlabs → default(新账号已有 human 素材组所在项目) - 图片/文本走 yunqi 中转站、TOS/TTS 独立账号,均不属本次迁移,未动 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
AirShelf Backend
All backend code lives under AirShelf/core/backend by project decision.
Local bootstrap
cd /Users/maidong/Desktop/zyc/qiyuan_gitea/AirShelf/core/backend
python3.12 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
python manage.py migrate
python manage.py runserver 0.0.0.0:8000
Start workers in separate terminals:
cd /Users/maidong/Desktop/zyc/qiyuan_gitea/AirShelf/core/backend
source .venv/bin/activate
celery -A airshelf worker -l info -P threads -c 4 # 线程池 4 并发(出图/视频可并行;勿用 -P solo 串行)
ffmpeg must be available on PATH for Stage5 export jobs.
Runtime layout
- Django project:
airshelf - Domain apps:
apps/* - Settings module:
airshelf.settings.development - Celery app:
airshelf.celery
Secrets must be supplied by environment variables or .env; never commit values from account.md.
Useful commands
python manage.py check
python manage.py makemigrations --check --dry-run
python manage.py migrate
python manage.py bootstrap_volcano_models
python manage.py test apps.accounts apps.projects apps.billing