Spaces:
Runtime error
Runtime error
Update start.sh
Browse files
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 "==>
|
| 8 |
-
python3 /app/scripts/
|
| 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
|
|
|
|
|
|
|
|
|