Spaces:
Running
Running
AILIXIR Bot commited on
Commit ·
8570841
1
Parent(s): 8cfbb87
Auto-sync: ea424f04eef521727d302c705d73f7b9f45b87ec
Browse files- docker/entrypoint.sh +12 -2
docker/entrypoint.sh
CHANGED
|
@@ -3,8 +3,18 @@ set -e
|
|
| 3 |
|
| 4 |
cd /var/www/html
|
| 5 |
|
| 6 |
-
# Ensure AI integration routes
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
php artisan config:clear --no-interaction 2>/dev/null || true
|
| 10 |
|
|
|
|
| 3 |
|
| 4 |
cd /var/www/html
|
| 5 |
|
| 6 |
+
# Ensure AI integration routes and service URLs are set at runtime
|
| 7 |
+
# (the sync workflow writes these to .env, but .env is gitignored and never reaches the container)
|
| 8 |
+
cat >> /var/www/html/.env << 'EOF'
|
| 9 |
+
AI_INTEGRATION_ROUTES_ENABLED=true
|
| 10 |
+
ADMET_AI_URL=https://shdwRow-ailixir-admet.hf.space
|
| 11 |
+
CHEMICAL_AI_URL=https://RottenShadow-ailixir-chemical-rag.hf.space
|
| 12 |
+
DRUG_REPURPOSING_URL=https://RottenShadow-ailixir-drug-repurposing.hf.space
|
| 13 |
+
GENERATION_SERVICE_URL=https://shdwRow-ailixir-generation.hf.space
|
| 14 |
+
APP_URL=https://Ailixir-AI-Team-ailixir-api.hf.space
|
| 15 |
+
APP_DEBUG=true
|
| 16 |
+
QUEUE_CONNECTION=sync
|
| 17 |
+
EOF
|
| 18 |
|
| 19 |
php artisan config:clear --no-interaction 2>/dev/null || true
|
| 20 |
|