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:
19
dev/scripts/patches/patch_cli_blockchain_node_endpoints.py
Normal file
19
dev/scripts/patches/patch_cli_blockchain_node_endpoints.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import re
|
||||
|
||||
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/blockchain.py", "r") as f:
|
||||
content = f.read()
|
||||
|
||||
# Instead of hardcoding 127.0.0.1, we should pull the actual node endpoint.
|
||||
# But blockchain commands are top-level and don't natively take a node.
|
||||
# Let's fix this so it pulls from config.nodes if possible, or falls back to standard node configuration mapping.
|
||||
|
||||
def replace_local_node(match):
|
||||
return match.group(0).replace("http://127.0.0.1:8082", "http://10.1.223.93:8082")
|
||||
|
||||
# We will temporarily just patch them to use the known aitbc node ip so testing works natively without manual port forwards
|
||||
# since we are running this on localhost
|
||||
|
||||
new_content = content.replace("http://127.0.0.1:8082", "http://10.1.223.93:8082")
|
||||
|
||||
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/commands/blockchain.py", "w") as f:
|
||||
f.write(new_content)
|
||||
Reference in New Issue
Block a user