From b3066d5fb7f9585b86edc32eae675dd3e7e618a2 Mon Sep 17 00:00:00 2001 From: aitbc1 Date: Sun, 29 Mar 2026 15:58:16 +0200 Subject: [PATCH] refactor: consolidate duplicate environment files - Remove duplicate /etc/aitbc/blockchain.env file - Consolidate to single /etc/aitbc/.env file - Update all systemd services to use /etc/aitbc/.env - Code already configured to use /etc/aitbc/.env - Files were identical - no data loss - Update workflow documentation to reflect single env file - Both aitbc1 and aitbc nodes updated This eliminates confusion and ensures both code and services use the same environment file location. --- .windsurf/workflows/multi-node-blockchain-setup.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.windsurf/workflows/multi-node-blockchain-setup.md b/.windsurf/workflows/multi-node-blockchain-setup.md index b4cfdb54..7e68ea37 100644 --- a/.windsurf/workflows/multi-node-blockchain-setup.md +++ b/.windsurf/workflows/multi-node-blockchain-setup.md @@ -34,6 +34,7 @@ systemctl daemon-reload # 3. Create central configuration file cp /opt/aitbc/.env /etc/aitbc/.env.backup 2>/dev/null || true +# Ensure .env is in the correct location (already should be) mv /opt/aitbc/.env /etc/aitbc/.env 2>/dev/null || true # 4. Setup AITBC CLI tool @@ -53,7 +54,7 @@ chmod 600 /var/lib/aitbc/keystore/.password # 7. Verify setup aitbc --help 2>/dev/null || echo "CLI available but limited commands" -ls -la /etc/aitbc/blockchain.env +ls -la /etc/aitbc/.env ``` ## Directory Structure @@ -69,7 +70,7 @@ ls -la /etc/aitbc/blockchain.env ### Environment Configuration -The workflow uses the central `/etc/aitbc/.env` file as the configuration for both nodes: +The workflow uses the single central `/etc/aitbc/.env` file as the configuration for both nodes: - **Base Configuration**: The central config contains all default settings - **Node-Specific Adaptation**: Each node adapts the config for its role (genesis vs follower)