fix host
This commit is contained in:
parent
2554d4a297
commit
494b2190a7
4
main.py
4
main.py
@ -5,12 +5,12 @@ from daemon.SimpleDaemon import Daemon
|
||||
|
||||
class CdnServerDaemon(Daemon):
|
||||
def run(self):
|
||||
uvicorn.run("server:app", port=5044, log_level="info")
|
||||
uvicorn.run("server:app", host='0.0.0.0', port=5044, log_level="info")
|
||||
|
||||
|
||||
# Press the green button in the gutter to run the script.
|
||||
if __name__ == '__main__':
|
||||
# uvicorn.run("server:app", port=5000, log_level="info")
|
||||
# uvicorn.run("server:app", host='0.0.0.0', port=5044, log_level="info")
|
||||
with CdnServerDaemon('/tmp/daemon-cdn-server.pid', error_log_file='errlog.txt') as daemon:
|
||||
daemon.process_command()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user