From 03c14f0faa38c54b31fb784de864a2d319ff92c3 Mon Sep 17 00:00:00 2001 From: OhSeongRak Date: Sat, 14 Jun 2025 23:22:02 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20app.py=20host=20&=20port=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smarketing-ai/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/smarketing-ai/app.py b/smarketing-ai/app.py index 6a4b9d4..c6ef91f 100644 --- a/smarketing-ai/app.py +++ b/smarketing-ai/app.py @@ -298,4 +298,7 @@ def create_app(): if __name__ == '__main__': app = create_app() - app.run(host='0.0.0.0', port=5001, debug=True) + host = os.getenv('SERVER_HOST', '0.0.0.0') + port = int(os.getenv('SERVER_PORT', '5001')) + + app.run(host=host, port=port, debug=True)