Browse Source

Update 'README.md'

天问 1 year ago
parent
commit
7abf788bcc
1 changed files with 25 additions and 1 deletions
  1. 25 1
      README.md

+ 25 - 1
README.md

@@ -1,3 +1,27 @@
 # waitress
 
-wsgi服务
+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
+)
+
+```