Add Mode6Test: copy of Mode5Test running on port 3000
Build & Deploy / Test & Lint (push) Has been cancelled
Build & Deploy / Security Scan (push) Has been cancelled
Code Quality / Code Quality Checks (push) Has been cancelled
Code Quality / Dependency Vulnerabilities (push) Has been cancelled
Code Quality / Performance Testing (push) Has been cancelled
Build & Deploy / Build Docker Images (push) Has been cancelled
Build & Deploy / Deploy to Kubernetes (push) Has been cancelled
Build & Deploy / Test & Lint (push) Has been cancelled
Build & Deploy / Security Scan (push) Has been cancelled
Code Quality / Code Quality Checks (push) Has been cancelled
Code Quality / Dependency Vulnerabilities (push) Has been cancelled
Code Quality / Performance Testing (push) Has been cancelled
Build & Deploy / Build Docker Images (push) Has been cancelled
Build & Deploy / Deploy to Kubernetes (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
# Copy Mode1Test to Mode5Test and update orchestrator
|
||||
|
||||
set -e
|
||||
|
||||
echo "Creating Mode5Test as copy of Mode1Test..."
|
||||
cd /home/admin/Job-Info-Test
|
||||
|
||||
# Remove if exists
|
||||
if [ -d "Mode5Test" ]; then
|
||||
echo "Mode5Test already exists, removing..."
|
||||
rm -rf Mode5Test
|
||||
fi
|
||||
|
||||
# Copy entire Mode1Test to Mode5Test
|
||||
cp -r Mode1Test Mode5Test
|
||||
echo "✓ Mode5Test created"
|
||||
|
||||
# Update orchestrator to support Mode5Test
|
||||
echo "Updating orchestrator..."
|
||||
|
||||
# Update the MODE_FOLDERS mapping in orchestrator.ts
|
||||
sed -i "s/'Mode3Test': 'Mode3Test',/'Mode3Test': 'Mode3Test',\n 'Mode5Test': 'Mode5Test',/" ModeSwitch/backend/orchestrator.ts
|
||||
|
||||
# Set active mode to Mode5Test
|
||||
echo "Mode5Test" > ModeSwitch/activeMode.txt
|
||||
|
||||
echo "✓ Orchestrator updated"
|
||||
echo "✓ Active mode set to Mode5Test"
|
||||
|
||||
echo ""
|
||||
echo "Done! Mode5Test is ready."
|
||||
echo "Run 'node orchestrator.ts' to start Mode5Test"
|
||||
Reference in New Issue
Block a user