File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ server 支持以下几种:
7272
7373所以,只要你安装了相应的服务器软件,就可以使用 ``werobot.run `` 直接跑在生产环境下。
7474
75- .. note :: server 的默认值为 ``auto``。
76- .. attention :: `WSGIRef <http://docs.python.org/library/wsgiref.html#module-wsgiref.simple_server>_` 的性能非常差, 仅能用于开发环境。 如果你要在生产环境下部署 WeRoBot , 请确保你在使用其他 server 。
75+ .. note :: server 的默认值为 ``auto`` 。
76+ .. attention :: `WSGIRef <http://docs.python.org/library/wsgiref.html#module-wsgiref.simple_server>`_ 的性能非常差, 仅能用于开发环境。 如果你要在生产环境下部署 WeRoBot , 请确保你在使用其他 server 。
7777
7878通过 WSGI HTTP Server 运行 WeRoBot
7979~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -85,7 +85,11 @@ server 支持以下几种:
8585 from werobot import WeRoBot
8686 robot = WeRoBot()
8787
88- 那么你只需要运行 `gunicorn robot:robot.wsgi ` 就可以了。
88+ 那么你只需要在 Shell 下运行 ::
89+
90+ gunicorn robot:robot.wsgi
91+
92+ 就可以了。
8993
9094使用 Supervisor 管理守护进程
9195~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments