| 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 |