refactor: standardize port to 1999 across all files

- Updated default port from 8080 to 1999 in config, Docker, and documentation files
- Modified example URLs and test commands to use new port
- Ensured consistent port references in environment configs and deployment examples
- Updated health check endpoints in Docker and testing scripts

The port change aligns with LIV Golf port allocation standards for staging environments (5000-9999 range).
This commit is contained in:
juanatsap
2025-10-29 14:04:24 +00:00
parent 4ec966591d
commit ee354d1d35
12 changed files with 336 additions and 458 deletions
+6 -6
View File
@@ -24,20 +24,20 @@ run: build
test:
@echo "🧪 Testing endpoints..."
@echo "\n1. Health check:"
@curl -s http://localhost:8080/health | jq .
@curl -s http://localhost:1999/health | jq .
@echo "\n2. English CV (first 50 chars):"
@curl -s "http://localhost:8080/?lang=en" | head -c 50
@curl -s "http://localhost:1999/?lang=en" | head -c 50
@echo "\n\n3. Spanish CV content (first 50 chars):"
@curl -s "http://localhost:8080/cv?lang=es" | head -c 50
@curl -s "http://localhost:1999/cv?lang=es" | head -c 50
@echo "\n\n4. Security headers:"
@curl -I http://localhost:8080/ 2>&1 | grep -E "^(X-|Content-Security)"
@curl -I http://localhost:1999/ 2>&1 | grep -E "^(X-|Content-Security)"
@echo "\n✓ All tests complete"
# Test error handling
test-errors:
@echo "🧪 Testing error handling..."
@echo "\n1. Invalid language:"
@curl -i "http://localhost:8080/?lang=invalid" 2>&1 | head -15
@curl -i "http://localhost:1999/?lang=invalid" 2>&1 | head -15
@echo "\n2. Error logging check"
@echo "✓ Error tests complete"
@@ -55,7 +55,7 @@ docker-build:
docker-run:
@echo "🐳 Running Docker container..."
docker run -p 8080:8080 cv-server:latest
docker run -p 1999:1999 cv-server:latest
# Help
help: