wehb dash!
This commit is contained in:
@@ -248,7 +248,7 @@ class PoolWebHandler(BaseHTTPRequestHandler):
|
||||
# Suppress access logs
|
||||
pass
|
||||
|
||||
def start_web_interface(pool_db, host='0.0.0.0', port=8080):
|
||||
def start_web_interface(pool_db, host='0.0.0.0', port=8083):
|
||||
"""Start the web interface server"""
|
||||
interface = PoolWebInterface(pool_db, host, port)
|
||||
|
||||
@@ -256,12 +256,18 @@ def start_web_interface(pool_db, host='0.0.0.0', port=8080):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, pool_interface=interface, **kwargs)
|
||||
|
||||
server = HTTPServer((host, port), Handler)
|
||||
print(f"🌐 Web interface running on http://{host}:{port}")
|
||||
print("Press Ctrl+C to stop")
|
||||
|
||||
try:
|
||||
server = HTTPServer((host, port), Handler)
|
||||
print(f"🌐 Web interface running on http://{host}:{port}")
|
||||
print("Press Ctrl+C to stop")
|
||||
|
||||
server.serve_forever()
|
||||
except OSError as e:
|
||||
if "Address already in use" in str(e):
|
||||
print(f"⚠️ Port {port} is already in use, web interface not started")
|
||||
print(f"💡 Try a different port or kill the process using port {port}")
|
||||
else:
|
||||
print(f"❌ Failed to start web interface: {e}")
|
||||
except KeyboardInterrupt:
|
||||
print("\n🛑 Shutting down web interface...")
|
||||
server.shutdown()
|
||||
|
||||
Reference in New Issue
Block a user