This commit is contained in:
Jason
2026-04-11 00:04:09 -05:00
commit 7a2fffd62e
110 changed files with 51809 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
#!/usr/bin/env python3
"""
Deployment Check Script
Run this on the server to verify configuration
"""
import os
import sys
print("=" * 70)
print("DEPLOYMENT CONFIGURATION CHECK")
print("=" * 70)
# Check Python version
print(f"\nPython Version: {sys.version}")
print(f"Python Executable: {sys.executable}")
# Check current directory
print(f"\nCurrent Directory: {os.getcwd()}")
# Check for required files
print("\n" + "=" * 70)
print("CHECKING FILES")
print("=" * 70)
files_to_check = ['app.py', 'wsgi.py', 'templates/home.html', 'templates/about.html']
for file in files_to_check:
exists = "✓ EXISTS" if os.path.exists(file) else "✗ MISSING"
print(f"{exists}: {file}")
# Check for passenger_wsgi.py (should NOT exist)
if os.path.exists('passenger_wsgi.py'):
print("✗ WARNING: passenger_wsgi.py exists - DELETE THIS FILE!")
else:
print("✓ GOOD: passenger_wsgi.py does not exist")
# Try importing Flask
print("\n" + "=" * 70)
print("CHECKING FLASK")
print("=" * 70)
try:
import flask
print(f"✓ Flask version: {flask.__version__}")
except ImportError as e:
print(f"✗ Flask not installed: {e}")
# Try importing the app
print("\n" + "=" * 70)
print("CHECKING APP IMPORT")
print("=" * 70)
try:
from app import app
print("✓ App imported successfully")
print(f"✓ App name: {app.name}")
print(f"✓ Routes count: {len(list(app.url_map.iter_rules()))}")
except Exception as e:
print(f"✗ Error importing app: {e}")
import traceback
traceback.print_exc()
print("\n" + "=" * 70)
print("DONE")
print("=" * 70)