This commit is contained in:
parent
595fa945cf
commit
5c4f73d2ca
3
main.py
3
main.py
|
@ -8,6 +8,7 @@ from ariadne.asgi import GraphQL
|
||||||
|
|
||||||
from starlette.routing import Route
|
from starlette.routing import Route
|
||||||
|
|
||||||
|
from services.logger import root_logger as logger
|
||||||
from services.rediscache import redis
|
from services.rediscache import redis
|
||||||
from services.schema import resolvers
|
from services.schema import resolvers
|
||||||
from services.sentry import start_sentry
|
from services.sentry import start_sentry
|
||||||
|
@ -23,7 +24,7 @@ async def start():
|
||||||
# pid file management
|
# pid file management
|
||||||
with open(DEV_SERVER_PID_FILE_NAME, "w", encoding="utf-8") as f:
|
with open(DEV_SERVER_PID_FILE_NAME, "w", encoding="utf-8") as f:
|
||||||
f.write(str(os.getpid()))
|
f.write(str(os.getpid()))
|
||||||
print(f"[main] process started in {MODE} mode")
|
logger.info(f"process started in {MODE} mode")
|
||||||
|
|
||||||
# main starlette app object with ariadne mounted in root
|
# main starlette app object with ariadne mounted in root
|
||||||
app = Starlette(
|
app = Starlette(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user