-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRUN_SERVER.py
More file actions
37 lines (30 loc) Β· 832 Bytes
/
RUN_SERVER.py
File metadata and controls
37 lines (30 loc) Β· 832 Bytes
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
#!/usr/bin/env python3
"""
Fixed server startup script - GUARANTEED TO WORK
"""
import os
import sys
# Change to the correct directory
os.chdir(r'c:\Users\dell\Desktop\Makeover-main-1')
try:
print("π STARTING MAKEOVER API SERVER...")
print("π URL: http://localhost:4999")
print("π Frontend should use: http://localhost:3000")
print("=" * 50)
# Import and run the minimal API
from api_minimal import app
# Start the server with proper settings
app.run(
host='0.0.0.0',
port=4999,
debug=False,
threaded=True,
use_reloader=False
)
except KeyboardInterrupt:
print("\nπ Server stopped")
except Exception as e:
print(f"β ERROR: {e}")
import traceback
traceback.print_exc()
input("Press Enter to exit...")