-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
46 lines (40 loc) · 1.39 KB
/
main.py
File metadata and controls
46 lines (40 loc) · 1.39 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
43
44
45
46
# AutoBot - AI-Powered Automation Platform
# Copyright (c) 2025 mrveiss
# Author: mrveiss
"""
DEPRECATED ENTRY POINT - Issue #725, #781
This file exists only to redirect users to the correct entry point.
The production backend is now at: autobot-user-backend/main.py
To start the backend:
cd autobot-user-backend && uvicorn main:app --host 0.0.0.0 --port 8001
Or use SLM orchestration:
SLM GUI: https://172.16.168.19/orchestration
CLI: scripts/start-services.sh start
"""
import sys
import warnings
warnings.warn(
"\n"
"=" * 70 + "\n"
"DEPRECATED: This entry point (main.py) is deprecated.\n"
"Use 'cd autobot-user-backend && uvicorn main:app' instead.\n"
"Or use SLM orchestration (scripts/start-services.sh) to start.\n"
"See Issue #781 for the new folder structure.\n"
"=" * 70,
DeprecationWarning,
stacklevel=2,
)
if __name__ == "__main__":
print("=" * 70)
print("ERROR: This entry point is deprecated.")
print()
print("The production backend has moved to: autobot-user-backend/main.py")
print()
print("To start the backend, use one of:")
print(" cd autobot-user-backend && uvicorn main:app --host 0.0.0.0 --port 8001")
print(" SLM GUI: https://172.16.168.19/orchestration")
print(" CLI: scripts/start-services.sh start")
print()
print("See Issue #781 for the new folder structure.")
print("=" * 70)
sys.exit(1)