Refactor and reorganize code. Split server into manager and server files.

This commit is contained in:
Brett Williams
2022-10-12 13:44:41 -07:00
parent 8ae50e2431
commit fd6af10d56
8 changed files with 630 additions and 631 deletions

View File

@@ -17,8 +17,8 @@ from rich.table import Table
from rich.text import Text
from rich.tree import Tree
import zordon_server
from zordon_server import RenderStatus, string_to_status
from utilities.render_worker import RenderStatus, string_to_status
from zordon_server import start_server
"""
The RenderDashboard is designed to be run on a remote machine or on the local server
@@ -235,10 +235,10 @@ if __name__ == '__main__':
if not client.connect():
if client.server_ip == local_hostname:
start_server = input("Local server not running. Start server? (y/n) ")
if start_server and start_server[0].lower() == "y":
start_server_input = input("Local server not running. Start server? (y/n) ")
if start_server_input and start_server_input[0].lower() == "y":
# Startup the local server
zordon_server.RenderServer.start(background_thread=True)
start_server(background_thread=True)
test = client.connect()
print(f"connected? {test}")
else: