Modify port environment

This commit is contained in:
2024-10-19 18:17:19 +02:00
parent ed10115127
commit 8fe64da6e5

View File

@@ -1,3 +1,4 @@
import os
from flask import Flask
from flask_cors import CORS
from src.api.routes import api_bp
@@ -14,5 +15,7 @@ def create_app():
return app
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
app = create_app()
app.run(debug=True)
app.run(host='0.0.0.0', port=port, debug=True)