2024-10-18 08:23:36 +08:00
|
|
|
from app_factory import create_app
|
2024-11-30 23:05:22 +08:00
|
|
|
from libs import threadings_utils, version_utils
|
2024-04-18 20:24:05 +08:00
|
|
|
|
2024-11-30 23:05:22 +08:00
|
|
|
# preparation before creating app
|
|
|
|
version_utils.check_supported_python_version()
|
|
|
|
threadings_utils.apply_gevent_threading_patch()
|
2023-05-15 08:51:32 +08:00
|
|
|
|
|
|
|
# create app
|
|
|
|
app = create_app()
|
|
|
|
celery = app.extensions["celery"]
|
|
|
|
|
2024-08-15 12:54:05 +08:00
|
|
|
if __name__ == "__main__":
|
|
|
|
app.run(host="0.0.0.0", port=5001)
|