🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore: add migration checks to confirm that required env variables are present (#7802)
Steffen Schmitzdb15742d2982
diff --git a/packages/shared/clickhouse/scripts/up.sh b/packages/shared/clickhouse/scripts/up.shindex 3afe13b4a5..608a73f4d3 100644--- a/packages/shared/clickhouse/scripts/up.sh+++ b/packages/shared/clickhouse/scripts/up.sh@@ -5,8 +5,30 @@# Check if CLICKHOUSE_URL is configuredif [ -z "${CLICKHOUSE_URL}" ]; then- echo "Info: CLICKHOUSE_URL not configured, skipping migration."- exit 0+ echo "Error: CLICKHOUSE_URL is not configured."+ echo "Please set CLICKHOUSE_URL in your environment variables."+ exit 1+fi++# Check if CLICKHOUSE_MIGRATION_URL is configured+if [ -z "${CLICKHOUSE_MIGRATION_URL}" ]; then+ echo "Error: CLICKHOUSE_MIGRATION_URL is not configured."+ echo "Please set CLICKHOUSE_MIGRATION_URL in your environment variables."+ exit 1+fi++# Check if CLICKHOUSE_USER is set+if [ -z "${CLICKHOUSE_USER}" ]; then+ echo "Error: CLICKHOUSE_USER is not set."+ echo "Please set CLICKHOUSE_USER in your environment variables."+ exit 1+fi++# Check if CLICKHOUSE_PASSWORD is set+if [ -z "${CLICKHOUSE_PASSWORD}" ]; then+ echo "Error: CLICKHOUSE_PASSWORD is not set."+ echo "Please set CLICKHOUSE_PASSWORD in your environment variables."+ exit 1fi# Check if golang-migrate is installed