import sys
import os

# Tell the server where to find your files
sys.path.insert(0, os.path.dirname(__file__))

# Import the WSGI adapter wrapper and your server instance
from a2wsgi import ASGIMiddleware
from server import app

# cPanel looks specifically for a root variable named 'application'
application = ASGIMiddleware(app)
