Add brain.py to the repository

This commit is contained in:
leeyj
2026-04-17 00:22:40 +09:00
parent 55efe80893
commit 331411895e
+20
View File
@@ -0,0 +1,20 @@
import platform
import os
import sys
from app import create_app
app = create_app()
if __name__ == "__main__":
# OS 환경에 따른 설정 분기
is_windows = platform.system() == "Windows"
# Windows(개발/디버그): 5050 포트, Linux(운영): 5093 포트
port = 5050 if is_windows else 5093
debug_mode = True if is_windows else False
print(f"📡 {'Windows' if is_windows else 'Linux'} 환경 감지 - Port: {port}, Debug: {debug_mode}")
# 향후 Linux 서버 구축시 gunicorn / uwsgi 로 구동 권장
app.run(host="0.0.0.0", port=port, debug=debug_mode)