add wsgi.py

This commit is contained in:
hillerliao
2022-05-12 22:29:56 +08:00
parent 645ca5648f
commit 8aedbd8780
2 changed files with 151 additions and 352 deletions

10
wsgi.py Normal file
View File

@@ -0,0 +1,10 @@
import os
from dotenv import load_dotenv
dotenv_path = os.path.join(os.path.dirname(__file__), '.env')
if os.path.exists(dotenv_path):
load_dotenv(dotenv_path)
from rsshub import create_app
app = create_app('production')