27 lines
675 B
Python
27 lines
675 B
Python
#!/usr/bin/env python
|
|
"""Standard entry point for the OpenClaw Dashboard."""
|
|
import sys
|
|
import os
|
|
from pathlib import Path
|
|
|
|
# Add src to python path
|
|
sys.path.insert(0, str(Path(__file__).parent / "src"))
|
|
|
|
import uvicorn
|
|
from openclaw.dashboard.app import create_app
|
|
|
|
def main():
|
|
"""Start the dashboard server."""
|
|
port = 8000
|
|
print("🚀 Initializing OpenClaw Dashboard...")
|
|
print(f"📡 Backend API: http://127.0.0.1:{port}")
|
|
print(f"🌐 Frontend expected at: http://localhost:3000")
|
|
|
|
app = create_app()
|
|
|
|
# Use 0.0.0.0 for better compatibility on Mac
|
|
uvicorn.run(app, host="0.0.0.0", port=port)
|
|
|
|
if __name__ == "__main__":
|
|
main()
|