-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
executable file
路42 lines (32 loc) 路 1.12 KB
/
Copy pathrun.py
File metadata and controls
executable file
路42 lines (32 loc) 路 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python3
"""
Main Entry Point - Marine Proof Edition
Tracey can just double-click this file!
"""
import sys
from pathlib import Path
from datetime import datetime
# Add project root to path
sys.path.insert(0, str(Path(__file__).parent))
print("="*60)
print(" 馃摝 Listings Manager - Marine Proof Edition")
print(f" Started: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}")
print("="*60 + "\n")
# Import and run marine-proof dashboard
from dashboard.marine_proof_ui import app, logger
import uvicorn
def main():
"""Launch the marine-proof web dashboard"""
print("馃殌 Starting Marine-Proof Dashboard...")
print("\nThis is a simplified interface for non-technical users.")
print("All settings are accessible in the browser!\n")
# Create necessary directories
for folder in ["./inventory/uploaded", "./logs"]:
Path(folder).mkdir(parents=True, exist_ok=True)
try:
uvicorn.run(app, host="0.0.0.0", port=8000, log_level="info")
except KeyboardInterrupt:
print("\n\n馃憢 Dashboard stopped by user")
sys.exit(0)
if __name__ == "__main__":
main()