使用 Google Cloud Platform 的标准环境时,我应该使用 gunicorn 为 Django 提供服务吗?
Should I be serving Django with gunicorn when using Google Cloud Platform's Standard Environment?
app engine quickstart guide for django doesn't mention anything for their sample Github Repo 也没有 gunicorn 之类的东西。
这里的最佳做法是什么?
还有-
Here is some documentation on the Python3 runtime。这句话对我来说很突出,让我怀疑我是否走在正确的轨道上:
Do not include gunicorn in your requirements.txt file unless you are specifying the entrypoint.
根据官方文档你也提到了
The use of an entrypoint is optional;
if your app meets the following
conditions, App Engine will use gunicorn as the web server and add the
package automatically to your requirements.txt file.
1.The root of your app directory contains a main.py file with a
WSGI-compatible object called app.
2.app.yaml does not contain the entrypoint field.
3.Your app does not contain Pipfile or Pipfile.lock files.
You can use other web frameworks with App Engine, such as uwsgi and
Tornado
您可以使用入口点字段来调整应用的性能。但是,如果您不选择入口点,GAE 基础架构将为您处理 gunicorn 任务 (PaaS)。
app engine quickstart guide for django doesn't mention anything for their sample Github Repo 也没有 gunicorn 之类的东西。
这里的最佳做法是什么?
还有-
Here is some documentation on the Python3 runtime。这句话对我来说很突出,让我怀疑我是否走在正确的轨道上:
Do not include gunicorn in your requirements.txt file unless you are specifying the entrypoint.
根据官方文档你也提到了
The use of an entrypoint is optional;
if your app meets the following conditions, App Engine will use gunicorn as the web server and add the package automatically to your requirements.txt file.
1.The root of your app directory contains a main.py file with a WSGI-compatible object called app.
2.app.yaml does not contain the entrypoint field.
3.Your app does not contain Pipfile or Pipfile.lock files.
You can use other web frameworks with App Engine, such as uwsgi and Tornado
您可以使用入口点字段来调整应用的性能。但是,如果您不选择入口点,GAE 基础架构将为您处理 gunicorn 任务 (PaaS)。