abc1181 commited on
Commit
a585a2c
·
1 Parent(s): fabd0d2

Move sync to background, start uvicorn immediately

Browse files
Files changed (1) hide show
  1. entrypoint.sh +3 -3
entrypoint.sh CHANGED
@@ -12,8 +12,8 @@ cd /app
12
  echo "[DB] Initializing database..."
13
  python3 -c "from backend.database import init_db; init_db()"
14
 
15
- echo "[Tools] Syncing integrations and tools..."
16
- python3 -c "
17
  import asyncio
18
  from backend.integrations.registry import sync_from_composio
19
  try:
@@ -21,7 +21,7 @@ try:
21
  print(f'[Tools] Sync complete: {result}')
22
  except Exception as e:
23
  print(f'[Tools] Sync failed: {e}')
24
- "
25
 
26
  echo "========================================="
27
  echo " Starting Platform on port 7860"
 
12
  echo "[DB] Initializing database..."
13
  python3 -c "from backend.database import init_db; init_db()"
14
 
15
+ echo "[Tools] Syncing integrations and tools (background)..."
16
+ nohup python3 -c "
17
  import asyncio
18
  from backend.integrations.registry import sync_from_composio
19
  try:
 
21
  print(f'[Tools] Sync complete: {result}')
22
  except Exception as e:
23
  print(f'[Tools] Sync failed: {e}')
24
+ " > /data/logs/sync.log 2>&1 &
25
 
26
  echo "========================================="
27
  echo " Starting Platform on port 7860"