Mariam-metho / main.py
kuro223's picture
Fix database URI to use SQLite and correct import in main.py
9cf5f37
raw
history blame
252 Bytes
import os
from app import app, db
# Create database tables if they don't exist
with app.app_context():
db.create_all()
if __name__ == '__main__':
port = int(os.environ.get("PORT", 5000))
app.run(host="0.0.0.0", port=port, debug=True)