Files
website/start-tunnel.sh
tumillanino d5818bcf13 everything
2025-10-28 14:48:44 +11:00

19 lines
485 B
Bash
Executable File

#!/bin/bash
# Load environment variables
if [ -f .env ]; then
export $(cat .env | grep -v '^#' | xargs)
fi
# Check if ORY_PROJECT_SLUG is set
if [ -z "$ORY_PROJECT_SLUG" ]; then
echo "Error: ORY_PROJECT_SLUG not found in .env file"
exit 1
fi
echo "Starting Ory tunnel for project: $ORY_PROJECT_SLUG"
echo "Tunnel will be available at: http://localhost:${TUNNEL_PORT:-4000}"
echo ""
npx @ory/cli tunnel --dev --project "$ORY_PROJECT_SLUG" http://localhost:${PORT:-3000}