lydgs commited on
Commit
679572e
·
verified ·
1 Parent(s): ee9f0e1

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +3 -6
start.sh CHANGED
@@ -4,11 +4,8 @@ set -e
4
  echo "==> Running database restore..."
5
  python3 /app/scripts/restore_from_dataset.py
6
 
7
- echo "==> Syncing Bailian models (first boot)..."
8
- python3 /app/scripts/sync_bailian_models.py || echo "Warning: model sync failed, will retry later via cron"
9
 
10
  echo "==> Starting supervisor..."
11
- exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
12
-
13
- echo "==> Debugging database schema..."
14
- python3 /app/scripts/debug_db.py
 
4
  echo "==> Running database restore..."
5
  python3 /app/scripts/restore_from_dataset.py
6
 
7
+ echo "==> Running initial backup to warm up..."
8
+ python3 /app/scripts/backup_to_dataset.py || echo "Initial backup failed, will retry via cron"
9
 
10
  echo "==> Starting supervisor..."
11
+ exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf