Spaces:
Sleeping
Sleeping
Alpha-xTeam commited on
Commit ·
c0eaa22
1
Parent(s): ac3e65c
final
Browse files- requirements.txt +1 -0
- wsgi_pa.py +12 -0
requirements.txt
CHANGED
|
@@ -14,3 +14,4 @@ openpyxl
|
|
| 14 |
apscheduler
|
| 15 |
pytz
|
| 16 |
firebase-admin
|
|
|
|
|
|
| 14 |
apscheduler
|
| 15 |
pytz
|
| 16 |
firebase-admin
|
| 17 |
+
a2wsgi
|
wsgi_pa.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import sys
|
| 3 |
+
from a2wsgi import ASGIMiddleware
|
| 4 |
+
from app.main import app
|
| 5 |
+
|
| 6 |
+
# Add your project directory to the sys.path
|
| 7 |
+
project_home = os.path.dirname(os.path.abspath(__file__))
|
| 8 |
+
if project_home not in sys.path:
|
| 9 |
+
sys.path.insert(0, project_home)
|
| 10 |
+
|
| 11 |
+
# Wrap FastAPI app with ASGIMiddleware to make it WSGI compatible
|
| 12 |
+
application = ASGIMiddleware(app)
|