- Add .aitbc.yaml configuration file with test values - Simplify .gitignore by removing merge conflicts and redundant entries - Reorganize .gitignore sections for better clarity - Set chain_id and proposer_id to empty strings in config.py (require explicit configuration) - Add production Helm values configuration - Add production nginx configuration - Update environment variable handling in chain settings
25 lines
959 B
Bash
Executable File
25 lines
959 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Clean up failed deployment and prepare for redeployment
|
|
|
|
echo "🧹 Cleaning up failed deployment..."
|
|
echo "=================================="
|
|
|
|
# Stop any running services
|
|
echo "Stopping services..."
|
|
ssh ns3-root "systemctl stop blockchain-node blockchain-rpc nginx 2>/dev/null || true"
|
|
|
|
# Remove old directories
|
|
echo "Removing old directories..."
|
|
ssh ns3-root "rm -rf /opt/blockchain-node /opt/blockchain-node-src /opt/blockchain-explorer 2>/dev/null || true"
|
|
|
|
# Remove systemd services
|
|
echo "Removing systemd services..."
|
|
ssh ns3-root "systemctl disable blockchain-node blockchain-rpc blockchain-explorer 2>/dev/null || true"
|
|
ssh ns3-root "rm -f /etc/systemd/system/blockchain-node.service /etc/systemd/system/blockchain-rpc.service /etc/systemd/system/blockchain-explorer.service 2>/dev/null || true"
|
|
ssh ns3-root "systemctl daemon-reload"
|
|
|
|
echo "✅ Cleanup complete!"
|
|
echo ""
|
|
echo "You can now run: ./scripts/deploy/deploy-all-remote.sh"
|