Updated code for Flask API container

This commit is contained in:
Marcin-Ramotowski
2025-03-14 22:06:20 +00:00
parent a9775f4fa5
commit c63c785686
4 changed files with 14 additions and 8 deletions

View File

@ -9,7 +9,7 @@ import os
if __name__ == "__main__":
load_dotenv()
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE_URI')
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('SQLALCHEMY_DATABASE_URI')
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
app.config['JWT_SECRET_KEY'] = 'changeme'
app.register_blueprint(user_bp)