mattermost로 메시지 보내기 세팅
This commit is contained in:
31
run.py
Normal file
31
run.py
Normal file
@ -0,0 +1,31 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
# 📌 프로젝트 루트 경로 추가
|
||||
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
|
||||
|
||||
from lib.config import Config
|
||||
from app.app import create_app
|
||||
|
||||
import logging
|
||||
|
||||
def main():
|
||||
# 설정 검증
|
||||
Config.validate()
|
||||
|
||||
# 로그 포맷 설정
|
||||
logging.basicConfig(
|
||||
level=Config.LOG_LEVEL,
|
||||
format="%(asctime)s [%(levelname)s] %(message)s"
|
||||
)
|
||||
|
||||
# Flask 앱 생성 및 실행
|
||||
app = create_app()
|
||||
app.run(
|
||||
host=Config.WEBHOOK_SERVER_HOST,
|
||||
port=Config.WEBHOOK_SERVER_PORT,
|
||||
debug=Config.DEBUG
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user