Spaces:
Runtime error
Runtime error
Download run.sh from oex2003/evolution-api: direct link, hf CLI and curl.
- Browser
- Download file 955 Bytes
-
https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/run.sh
- Command line
-
hf download hf://spaces/oex2003/evolution-api@refs/pr/1/run.sh
-
curl -L -o run.sh https://huggingface.co/spaces/oex2003/evolution-api/resolve/refs%2Fpr%2F1/run.sh
955 Bytes
| # run.sh | |
| set -euo pipefail | |
| echo "Starting Evolution API in production mode" | |
| # تعديل متغيرات البيئة من القيم المخزنة في Huggingface Space | |
| if [ -n "${REDIS_PASSWORD:-}" ]; then | |
| export CACHE_REDIS_URI="rediss://default:${REDIS_PASSWORD}@related-ant-6145.upstash.io:6379" | |
| echo "Redis connection configured with online service" | |
| fi | |
| if [ -n "${DATABASE_PASSWORD:-}" ]; then | |
| export DATABASE_URL="postgresql://postgres.spnhuzaclgccmmunhmfc:${DATABASE_PASSWORD}@aws-0-eu-north-1.pooler.supabase.com:5432/postgres" | |
| export DATABASE_CONNECTION_URI="postgresql://postgres.spnhuzaclgccmmunhmfc:${DATABASE_PASSWORD}@aws-0-eu-north-1.pooler.supabase.com:6543/postgres" | |
| echo "Database connection configured with Supabase" | |
| fi | |
| if [ -n "${API_KEY:-}" ]; then | |
| export AUTHENTICATION_API_KEY="${API_KEY}" | |
| echo "API key configured" | |
| fi | |
| # بدء تشغيل Evolution API في وضع الإنتاج | |
| npm run start:prod |