HF-Spaces / start.sh
AntDX316
updated
0a25a37
raw
history blame contribute delete
316 Bytes
#!/bin/sh
set -e
# Print environment for debugging
echo "Environment variables:"
printenv | grep -v PASSWORD | grep -v SECRET
# Set default port if not provided
if [ -z "$PORT" ]; then
echo "PORT not set, defaulting to 7860"
export PORT=7860
fi
echo "Starting server on port $PORT"
serve -s dist -l $PORT