Update serve.py

D David Veksler · 1 year ago f3e86de631757cfa4dd816a39dff4dc4ae0ba055
Parent: 612a13a57

1 file changed +5 −5

Diff

diff --git a/serve.py b/serve.py
index 25a636d..d0c366d 100755
--- a/serve.py
+++ b/serve.py
@@ -11,18 +11,18 @@ import os
 import sys
 from pathlib import Path
 
-PORT = 8000
+PORT = 8080
 
 class PHPHandler(http.server.SimpleHTTPRequestHandler):
     """Handler that serves PHP files as HTML for local testing"""
-    
+
     def end_headers(self):
         # Add CORS headers to prevent issues
         self.send_header('Access-Control-Allow-Origin', '*')
         self.send_header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS')
         self.send_header('Access-Control-Allow-Headers', 'Content-Type')
         super().end_headers()
-    
+
     def guess_type(self, path):
         # Serve PHP files as HTML for local testing
         if path.endswith('.php'):
@@ -33,11 +33,11 @@ def main():
     # Change to script directory
     script_dir = Path(__file__).parent
     os.chdir(script_dir)
-    
+
     print(f"Starting server in: {script_dir}")
     print(f"Server running at: http://localhost:{PORT}")
     print("Press Ctrl+C to stop the server")
-    
+
     try:
         with socketserver.TCPServer(("", PORT), PHPHandler) as httpd:
             # Open browser automatically