diff --git a/main.py b/main.py index 0b47046..1992ea9 100644 --- a/main.py +++ b/main.py @@ -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) \ No newline at end of file + app.run(host='0.0.0.0', port=port, debug=True) \ No newline at end of file