mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-12 14:11:07 +00:00
16 lines
No EOL
346 B
Bash
16 lines
No EOL
346 B
Bash
#!/bin/bash
|
|
|
|
# 等待数据库启动
|
|
echo "Waiting for database to be ready..."
|
|
while ! nc -z postgres 5432; do
|
|
sleep 1
|
|
done
|
|
echo "Database is ready!"
|
|
|
|
# 运行数据库迁移
|
|
echo "Running database migrations..."
|
|
uv run alembic upgrade head
|
|
|
|
# 启动应用
|
|
echo "Starting application..."
|
|
exec uv run uvicorn main:api --host 0.0.0.0 --port 5678 |