refactor(coordinator): standardize database path to follow blockchain-node pattern

- Change coordinator database from /opt/data/coordinator.db to ./data/coordinator.db
- Update config.py to use relative path consistent with blockchain-node
- Update deployment scripts to use /opt/coordinator-api/data/coordinator.db
- Add data directory creation in init_db() for consistency
- Update .env.example files to reflect new standard
- Maintain backward compatibility for production deployment
This commit is contained in:
oib
2026-02-27 17:32:00 +01:00
parent d023654e74
commit 27e836bf3f
9 changed files with 80 additions and 44 deletions

View File

@@ -1,7 +1,7 @@
APP_ENV=dev
APP_HOST=127.0.0.1
APP_PORT=8011
DATABASE_URL=sqlite:///./coordinator.db
DATABASE_URL=sqlite:///./data/coordinator.db
CLIENT_API_KEYS=${CLIENT_API_KEY},client_dev_key_2
MINER_API_KEYS=${MINER_API_KEY},miner_dev_key_2
ADMIN_API_KEYS=${ADMIN_API_KEY}