cryptic-game / cryptic-service

The offical service microservice of Cryptic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use main.py instead of app.py as mainfile

TheCataliasTNT2k opened this issue · comments

Describe the bug
The microservice was initialized twice, because Python renames the entrypoint internally to __main__. We have a circular import back to the entrypoint app, which then initializes the microservice again. That caused many problems.

Solution
Move the main entrypoint from app.py to a new file, e.g. main.py.