Basic python server working including hot-reload

This commit is contained in:
Yeicor
2024-02-05 21:05:50 +01:00
parent 69106abbbd
commit 07334a75f5
5 changed files with 130 additions and 12 deletions

6
yacv_server/main.py Normal file
View File

@@ -0,0 +1,6 @@
from os import system
if __name__ == '__main__':
# Just a reminder that a hot-reloading server can be started with the following command:
# Need to disable auto-start to avoid conflicts with the hot-reloading server
system('YACV_DISABLE_SERVER=true aiohttp-devtools runserver server.py --port 32323')