Spaces:
Paused
Paused
File size: 513 Bytes
d416174 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#!/bin/bash
# Print environment for debugging
echo "Starting Langfuse..."
echo "PORT: $PORT"
echo "HOSTNAME: $HOSTNAME"
echo "DATABASE_URL: $DATABASE_URL"
# Ensure the database directory exists
mkdir -p /tmp
# Debug: Check if required environment variables are set
if [ -z "$NEXTAUTH_SECRET" ] || [ -z "$SALT" ]; then
echo "ERROR: Missing critical environment variables"
exit 1
fi
# Attempt to start the application with verbose logging
echo "Attempting to start Langfuse server..."
exec npm run start |