mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Починка админки4
This commit is contained in:
@@ -1,8 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
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
|
# Run database initialization
|
||||||
|
echo "Initializing database..."
|
||||||
python /app/scripts/init_db.py
|
python /app/scripts/init_db.py
|
||||||
|
|
||||||
# Start the main application
|
# Start the main application
|
||||||
|
echo "Starting application..."
|
||||||
exec python /app/run.py
|
exec python /app/run.py
|
||||||
Reference in New Issue
Block a user