test server

This commit is contained in:
Kavalar 2023-03-22 18:26:38 +03:00
parent c16560cf99
commit 3a6420eef1

View File

@ -10,6 +10,7 @@ class CdnServerDaemon(Daemon):
# Press the green button in the gutter to run the script. # Press the green button in the gutter to run the script.
if __name__ == '__main__': if __name__ == '__main__':
# uvicorn.run("server:app", port=5000, log_level="info")
with CdnServerDaemon('/tmp/daemon-cdn-server.pid', error_log_file='errlog.txt') as daemon: with CdnServerDaemon('/tmp/daemon-cdn-server.pid', error_log_file='errlog.txt') as daemon:
daemon.process_command() daemon.process_command()