AILIXIR Bot commited on
Commit
ff99aeb
·
1 Parent(s): 898109e

Auto-sync: ea424f04eef521727d302c705d73f7b9f45b87ec

Browse files
Files changed (1) hide show
  1. docker/entrypoint.sh +13 -0
docker/entrypoint.sh CHANGED
@@ -3,6 +3,19 @@ set -e
3
 
4
  cd /var/www/html
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  php artisan config:clear --no-interaction 2>/dev/null || true
7
 
8
  # Create SQLite database file if it doesn't exist
 
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
 
21
  # Create SQLite database file if it doesn't exist