#!/bin/bash # Deploy schema to production SurrealDB # This script reads from .prod.env and applies the schema set -e if [ ! -f .prod.env ]; then echo "Error: .prod.env file not found" echo "Please create .prod.env with your production database credentials" exit 1 fi echo "Loading production environment variables..." export $(cat .prod.env | grep -v '^#' | grep '=' | xargs) echo "Applying schema to production database..." node scripts/apply-schema-prod.js echo "" echo "✓ Schema deployment complete!" echo "" echo "You can now test your deployment at: https://www.ponderants.com"