don't generate manifest when testing locally with host.py

Hunter
Friday, December 12th, 2025 at 7:06 PM

host.py+1-31

host.py
115  	except Exception as e:
116  		print(f"\nCould not generate QR code: {e}")
117  
    -
    -def generate_localhost_manifests():
    -	"""Generate PWA manifests for localhost usage"""
    -	try:
    -		# Import the generate_manifests module
    -		sys.path.insert(0, str(SCRIPT_DIR))
    -		from generate_manifests import get_configuration, generate_pwa_manifests
    -
    -		# Get configuration with localhost mode enabled
    -		print()
    -		app_name, base_path = get_configuration(localhost=True)
    -
    -		# Generate the manifests
    -		generate_pwa_manifests(app_name, base_path)
    -		print()
    -
    -		return app_name
    -
    -	except ImportError as e:
    -		print(f"Error: Could not import generate_manifests.py: {e}")
    -		print("Make sure generate_manifests.py is in the same directory.")
    -		sys.exit(1)
    -	except Exception as e:
    -		print(f"Error generating manifests: {e}")
    -		sys.exit(1)
    -
    -
118  def start_server():
119  	"""Start the HTTP server (runs after venv is set up)"""
120  	# Change to script directory
121  	os.chdir(SCRIPT_DIR)
122  
    -	# Generate manifests for localhost
    -	app_name = generate_localhost_manifests()
    -
123  	# Find an available port
124  	port = find_available_port(DEFAULT_PORT)
125  

152  			network_url = f"http://{local_ip}:{port}"
153  
154  			print("=" * 60)
    -			print(f"💿 {app_name}")
155 +			print("💿 vibe capsule")
156  			print("=" * 60)
157  			print(f"\nServer running on port {port}")
158