Files
Sankofa/api/scripts/create-env.sh
defiQUG 8436e22f4c API: Phoenix railing proxy, API key auth for /api/v1/*, schema export, docs, migrations, tests
- Phoenix API Railing: proxy to PHOENIX_RAILING_URL, tenant me routes
- Tenant-auth: X-API-Key support for /api/v1/* (api_keys table)
- Migration 026: api_keys table; 025 sovereign stack marketplace
- GET /graphql/schema, GET /graphql-playground, api/docs OpenAPI
- Integration tests: phoenix-railing.test.ts
- docs/api/API_VERSIONING: /api/v1/ railing alignment
- docs/phoenix/PORTAL_RAILING_WIRING

Made-with: Cursor
2026-03-11 12:57:41 -07:00

32 lines
835 B
Bash
Executable File

#!/bin/bash
# Helper script to create .env file from .env.example
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
API_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
cd "$API_DIR"
if [ -f .env ]; then
echo "⚠ .env file already exists. Skipping creation."
echo "If you want to recreate it, delete .env first."
exit 0
fi
if [ ! -f .env.example ]; then
echo "❌ .env.example not found. Cannot create .env file."
exit 1
fi
echo "Creating .env file from .env.example..."
cp .env.example .env
echo ""
echo "✅ .env file created!"
echo ""
echo "⚠ IMPORTANT: Please edit .env and set your database password:"
echo " DB_PASSWORD=your_secure_password_here"
echo ""
echo "For development: minimum 8 characters"
echo "For production: minimum 32 characters with uppercase, lowercase, numbers, and special characters"
echo ""