skip to Main Content

I’m having trouble deploying a FastAPI app on cpanel with Passenger

2

Answers


  1. You might be able to run your FastAPI app using a2wsgi:

    In your passenger_wsgi.py:

    from a2wsgi import ASGIMiddleware
    from main import app  # Import your FastAPI app.
    
    application = ASGIMiddleware(app)
    
    Login or Signup to reply.
  2. Applied the python package a2wsgi for resolving the problem but it’s not working.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search