Merge branch 'staging' into perf/bun-runtime
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Check for LOCAL_TUNNEL_RESERVED_KEY environment variable first
|
||||
if [ -z "$LOCAL_TUNNEL_RESERVED_KEY" ]; then
|
||||
if [ -z "$LOCALTUNNEL_RESERVED_KEY" ]; then
|
||||
# Read LOCAL_TUNNEL_RESERVED_KEY from .env file if env var not set
|
||||
if [ -f "/app/server/.env" ]; then
|
||||
export $(cat /app/server/.env | grep LOCAL_TUNNEL_RESERVED_KEY | grep -v '^#')
|
||||
export $(cat /app/server/.env | grep LOCALTUNNEL_RESERVED_KEY | grep -v '^#')
|
||||
fi
|
||||
fi
|
||||
|
||||
# Set default subdomain if env var not found
|
||||
if [ -z "$LOCAL_TUNNEL_RESERVED_KEY" ]; then
|
||||
LOCAL_TUNNEL_RESERVED_KEY="autumn-dev"
|
||||
if [ -z "$LOCALTUNNEL_RESERVED_KEY" ]; then
|
||||
LOCALTUNNEL_RESERVED_KEY="autumn-dev"
|
||||
fi
|
||||
|
||||
echo "Installing localtunnel..."
|
||||
@@ -19,4 +19,4 @@ bun install -g localtunnel
|
||||
|
||||
|
||||
echo "Server is ready! Starting localtunnel..."
|
||||
lt --port 8080 --local-host server --subdomain ${LOCAL_TUNNEL_RESERVED_KEY} --print-requests
|
||||
lt --port 8080 --local-host server --subdomain ${LOCALTUNNEL_RESERVED_KEY} --print-requests
|
||||
Reference in New Issue
Block a user