From 296491d0b95b1288081b06c5d6154ad2044c1670 Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 2 Mar 2026 23:07:14 +0000 Subject: [PATCH] feat: add production start script with tunnel URL config Co-Authored-By: Claude Opus 4.6 --- scripts/start.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 scripts/start.sh diff --git a/scripts/start.sh b/scripts/start.sh new file mode 100755 index 0000000..6679f1f --- /dev/null +++ b/scripts/start.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# SmashPoint - Cabo Pickleball Club +# Production server start script + +set -e + +# Load environment variables +export NEXTAUTH_URL="https://smashpoint.consultoria-as.com" +export NEXT_PUBLIC_APP_URL="https://smashpoint.consultoria-as.com" +export NEXTAUTH_SECRET="xApk6WiZYJZwUpKk6ZlyHoseXqsCSnTmRDqzDdmtRVY=" + +APP_DIR="/root/Padel/apps/web" +PORT=3000 + +# Kill any existing server on the port +fuser -k $PORT/tcp 2>/dev/null || true +sleep 2 + +cd "$APP_DIR" + +echo "Starting SmashPoint on port $PORT..." +echo "URL: $NEXTAUTH_URL" + +npx next start --port $PORT