wsgi服务

天问 7abf788bcc Update 'README.md' 1 week ago
README.md 7abf788bcc Update 'README.md' 1 week ago

README.md

waitress

wsgi服务

Usage

pip install waitress

waitress-serve --host=0.0.0.0 --port=8080 your_app:app

main.py

from waitress import serve
from app import app
from config.env import AppConfig

serve(
    app.server,
    host=AppConfig.app_host,
    port=AppConfig.app_port
)