LangFuse / start.sh
Chris4K's picture
Create start.sh
d416174 verified
raw
history blame
513 Bytes
#!/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