I'm having trouble deploying a FastAPI app on cpanel with Passenger
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)
Applied the python package a2wsgi for resolving the problem but it's not working.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.