Files
cfw-autumn/localtunnel-start.sh
Dominik Koch 7dffe557b6 fix: local deployment on bill gates os
Local deployments on windows didnt seem to work so this pr aims to fix that and hopefully make autumn work everywhere now!
2025-06-19 18:16:14 +02:00

19 lines
540 B
Bash
Executable File

#!/bin/sh
# Read LOCALTUNNEL_RESERVED_KEY from .env file
if [ -f "/app/server/.env" ]; then
export $(cat /app/server/.env | grep LOCALTUNNEL_RESERVED_KEY)
fi
# Set default subdomain if env var not found
if [ -z "$LOCALTUNNEL_RESERVED_KEY" ]; then
LOCALTUNNEL_RESERVED_KEY="autumn-dev"
fi
echo "LOCALTUNNEL_RESERVED_KEY: ${LOCALTUNNEL_RESERVED_KEY}"
echo "Installing localtunnel..."
npm install -g localtunnel
echo "Starting localtunnel..."
lt --port 8080 --local-host server --subdomain ${LOCALTUNNEL_RESERVED_KEY} --print-requests