diff options
author | Parker M <contact@pkrm.dev> | 2023-09-16 21:52:24 -0500 |
---|---|---|
committer | Parker M <contact@pkrm.dev> | 2023-09-16 21:52:24 -0500 |
commit | 0fbdd7fced2c445a425621f3b106f257748dc0ba (patch) | |
tree | ab1451a8e4fd20d75624b282ca5a283367f805ef /app/wsgi.py | |
parent | 1edb565c2d8c3f8f17d511aea99dd0d914abc2d8 (diff) |
commit
Diffstat (limited to 'app/wsgi.py')
-rw-r--r-- | app/wsgi.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/wsgi.py b/app/wsgi.py new file mode 100644 index 0000000..d3cd6c6 --- /dev/null +++ b/app/wsgi.py @@ -0,0 +1,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))
\ No newline at end of file |