blob: d3cd6c632e741c4ed95661f16dda36fea6a5e2ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from hypercorn.config import Config
from hypercorn.asyncio import serve
from messagearr import app
import multiprocessing
import asyncio
from db_removal import sched
if __name__ == '__main__':
multiprocessing.Process(target=sched.start()).start()
print('Starting server...')
config = Config()
config.bind = ["0.0.0.0:4545"]
asyncio.run(serve(app, config))
|