21 lines
498 B
Python
21 lines
498 B
Python
from app import create_app
|
|
from services.tim import start_scheduler
|
|
import logging
|
|
|
|
|
|
logging.basicConfig(
|
|
filename="./logs/logss.log",
|
|
level=logging.WARN,
|
|
# format="%(asctime)s - %(message)s",
|
|
format="%(asctime)s [%(filename)s:%(lineno)d] - %(message)s",
|
|
datefmt="%Y-%m-%d %H:%M:%S",
|
|
# encoding='utf-8' # Указание кодировки UTF-8
|
|
|
|
)
|
|
|
|
|
|
app = create_app()
|
|
start_scheduler()
|
|
|
|
if __name__ == "__main__":
|
|
app.run(host="0.0.0.0", port=5205, debug=True) |