import os
import sys
import logging

# Add your project directory to the sys.path
project_home = os.path.dirname(os.path.abspath(__file__))
if project_home not in sys.path:
    sys.path.insert(0, project_home)

# Set up logging
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)

# Import your Flask app
from main import app as application

# This is what Passenger will use
if __name__ == "__main__":
    application.run()
