initialize database tables in create_app function
All checks were successful
Build and Push Image / build-and-push (push) Successful in 15s

This commit is contained in:
Michael Trip 2026-01-09 22:14:23 +01:00
parent b56e866071
commit bdb61fe1b7

View file

@ -24,4 +24,8 @@ def create_app():
from app.routes import bp as main_bp
app.register_blueprint(main_bp)
# Initialize database tables
with app.app_context():
db.create_all()
return app