test
This commit is contained in:
parent
8d8954b4ac
commit
60f5373baa
14
main.py
14
main.py
@ -59,5 +59,15 @@ def get_port(subdomain: str):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
with FrontDemoDaemon('/tmp/front-demo-daemon.pid', error_log_file='/var/log/daemon_logs/front-demo-daemon.txt') as front:
|
||||
front.process_command()
|
||||
webServer = HTTPServer((hostName, serverPort), MyServer)
|
||||
print(f"Server started http://{hostName}:{serverPort}")
|
||||
|
||||
try:
|
||||
webServer.serve_forever()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
webServer.server_close()
|
||||
print("Http server stopped.")
|
||||
# with FrontDemoDaemon('/tmp/front-demo-daemon.pid', error_log_file='/var/log/daemon_logs/front-demo-daemon.txt') as front:
|
||||
# front.process_command()
|
||||
|
Loading…
x
Reference in New Issue
Block a user