Commit Graph

10 Commits

Author SHA1 Message Date
k 6021a3883d feat: auto-migrate SQLite data to Postgres on first deploy
- 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>
2026-04-21 20:48:05 +08:00
k 1deb6a3918 correct healthcheck of database 2026-04-21 20:17:50 +08:00
k 1981b73f1f fix: complete requirements.txt and Docker setup for production deployment
- Add missing packages: openai, aiosqlite, msgpack, websocket-client, bitarray, ckzg
- Pin all versions from working venv (including eth-account 0.13.7, hyperliquid-python-sdk 0.23.0)
- Multi-stage Dockerfile: builder with cmake for ckzg compilation, slim runtime image
- docker-compose: postgres healthcheck with start_period, auto alembic migration on startup
- entrypoint.sh: alembic upgrade head before uvicorn

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 20:12:59 +08:00
k 7f7eecc830 fix database url 2026-04-21 19:58:00 +08:00
k b250bdb4d1 fix with coolify magic env var 2026-04-21 19:55:00 +08:00
k 0782aed4e6 fix: failed to solve: process /bin/sh -c pip install --no-cache-dir -r requirements.txt did not complete successfully 2026-04-21 19:49:47 +08:00
k 3f901df82b aiosqlite, cryptography, hyperliquid-python-sdk 2026-04-21 19:45:49 +08:00
k 3056635a5c for deploy 2026-04-21 19:41:11 +08:00
k 3268080401 done 2026-04-21 19:33:24 +08:00
k 9a72566753 first commit 2026-04-20 23:05:59 +08:00