6021a3883d
- Add trumpsignal.db to git (one-time migration source) - entrypoint.sh detects empty Postgres and runs migration automatically - scripts/migrate_sqlite_to_postgres.py: posts, subscriptions, bot_trades - Add psycopg2-binary to requirements for migration script Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
412 B
Plaintext
24 lines
412 B
Plaintext
# 虚拟环境
|
|
venv/
|
|
env/
|
|
.env
|
|
|
|
# 敏感信息及配置文件
|
|
.env
|
|
*.pem
|
|
|
|
# 数据库 (trumpsignal.db 是例外,用于一次性迁移到 Postgres)
|
|
*.sqlite
|
|
*.sqlite3
|
|
|
|
# Python 缓存
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
|
|
# macOS 系统文件
|
|
.DS_Store
|
|
|
|
# Alembic 产生的临时迁移记录
|
|
# 注意:alembic/versions 中的迁移脚本应该提交,但 alembic 目录下的其他临时文件可能需要忽略
|