chore(cleanup): remove obsolete scripts and update paths for production deployment
- Remove dev/scripts/check-file-organization.sh (obsolete organization checker) - Remove dev/scripts/community_onboarding.py (unused 559-line automation script) - Update gpu_miner_host.py log path from /home/oib/windsurf/aitbc to /opt/aitbc - Add service status and standardization badges to README.md
This commit is contained in:
27
dev/scripts/patches/patch_app.py
Normal file
27
dev/scripts/patches/patch_app.py
Normal file
@@ -0,0 +1,27 @@
|
||||
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/app.py", "r") as f:
|
||||
content = f.read()
|
||||
|
||||
content = content.replace(
|
||||
""" _app_logger.info("Blockchain node started", extra={"chain_id": settings.chain_id})""",
|
||||
""" _app_logger.info("Blockchain node started", extra={"supported_chains": settings.supported_chains})"""
|
||||
)
|
||||
|
||||
content = content.replace(
|
||||
""" @metrics_router.get("/health", tags=["health"], summary="Health check")
|
||||
async def health() -> dict:
|
||||
return {
|
||||
"status": "ok",
|
||||
"chain_id": settings.chain_id,
|
||||
"proposer_id": settings.proposer_id,
|
||||
}""",
|
||||
""" @metrics_router.get("/health", tags=["health"], summary="Health check")
|
||||
async def health() -> dict:
|
||||
return {
|
||||
"status": "ok",
|
||||
"supported_chains": [c.strip() for c in settings.supported_chains.split(",") if c.strip()],
|
||||
"proposer_id": settings.proposer_id,
|
||||
}"""
|
||||
)
|
||||
|
||||
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/app.py", "w") as f:
|
||||
f.write(content)
|
||||
Reference in New Issue
Block a user