mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
18 lines
364 B
Bash
18 lines
364 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# Wait for database to be ready
|
|
echo "Waiting for database..."
|
|
sleep 5
|
|
|
|
# Run database migrations
|
|
echo "Running database migrations..."
|
|
cd /app && alembic upgrade head
|
|
|
|
# Run database initialization
|
|
echo "Initializing database..."
|
|
python /app/scripts/init_db.py
|
|
|
|
# Start the main application
|
|
echo "Starting application..."
|
|
exec python /app/run.py |