Files
Sankofa/scripts/load-env.sh
defiQUG 9daf1fd378 Apply Composer changes: comprehensive API updates, migrations, middleware, and infrastructure improvements
- Add comprehensive database migrations (001-024) for schema evolution
- Enhance API schema with expanded type definitions and resolvers
- Add new middleware: audit logging, rate limiting, MFA enforcement, security, tenant auth
- Implement new services: AI optimization, billing, blockchain, compliance, marketplace
- Add adapter layer for cloud integrations (Cloudflare, Kubernetes, Proxmox, storage)
- Update Crossplane provider with enhanced VM management capabilities
- Add comprehensive test suite for API endpoints and services
- Update frontend components with improved GraphQL subscriptions and real-time updates
- Enhance security configurations and headers (CSP, CORS, etc.)
- Update documentation and configuration files
- Add new CI/CD workflows and validation scripts
- Implement design system improvements and UI enhancements
2025-12-12 18:01:35 -08:00

21 lines
694 B
Bash
Executable File

#!/bin/bash
# load-env.sh
# Helper script to load environment variables from .env file
if [ -f .env ]; then
# Export variables from .env file
# This handles comments and empty lines
set -a
source <(grep -v '^#' .env | grep -v '^$' | sed 's/^/export /')
set +a
# Also set CLOUDFLARE_API_TOKEN from Global API Key if not set
if [ -z "${CLOUDFLARE_API_TOKEN:-}" ] && [ -n "${CLOUDFLARE_API_KEY:-}" ] && [ -n "${CLOUDFLARE_EMAIL:-}" ]; then
# For scripts that need API Token, we can use Global API Key + Email
# Some scripts may need the token format, so we'll keep both
export CLOUDFLARE_API_KEY
export CLOUDFLARE_EMAIL
fi
fi