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()