Update entrypoint.sh

This commit is contained in:
2025-05-31 23:12:35 +02:00
parent 58c23a6380
commit 1c74706736

View File

@@ -43,6 +43,20 @@ with app.app_context():
print(f'Error creating events table: {e}') print(f'Error creating events table: {e}')
" "
# Create notifs table
echo "Creating notifs table..."
python3 -c "
from migrations.add_notifs_table import upgrade
from app import create_app
app = create_app()
with app.app_context():
try:
upgrade()
print('Notifs table created successfully')
except Exception as e:
print(f'Error creating notifs table: {e}')
"
# Create default site settings if they don't exist # Create default site settings if they don't exist
echo "Creating default site settings..." echo "Creating default site settings..."
python3 -c " python3 -c "