Team Ai
Apppublic

oex2003/evolution-api

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
run.sh26 linesDownload Raw Back to root
1#!/bin/bash2# run.sh3 4set -euo pipefail5 6echo "Starting Evolution API in production mode"7 8# تعديل متغيرات البيئة من القيم المخزنة في Huggingface Space9if [ -n "${REDIS_PASSWORD:-}" ]; then10  export CACHE_REDIS_URI="rediss://default:${REDIS_PASSWORD}@related-ant-6145.upstash.io:6379"11  echo "Redis connection configured with online service"12fi13 14if [ -n "${DATABASE_PASSWORD:-}" ]; then15  export DATABASE_URL="postgresql://postgres.spnhuzaclgccmmunhmfc:${DATABASE_PASSWORD}@aws-0-eu-north-1.pooler.supabase.com:5432/postgres"16  export DATABASE_CONNECTION_URI="postgresql://postgres.spnhuzaclgccmmunhmfc:${DATABASE_PASSWORD}@aws-0-eu-north-1.pooler.supabase.com:6543/postgres"17  echo "Database connection configured with Supabase"18fi19 20if [ -n "${API_KEY:-}" ]; then21  export AUTHENTICATION_API_KEY="${API_KEY}"22  echo "API key configured"23fi24 25# بدء تشغيل Evolution API في وضع الإنتاج26npm run start:prod