0

我正在使用 Windows 开发 Django 应用程序。

每当我尝试部署到 GCloud 时,都会收到 exec: gunicorn 错误。

我知道 Gunicorn 在 Win 上不起作用,但我的理解是不需要部署它并在本地安装和运行,只需放入 requirements.txt (它所在的位置)。

我在网上找不到任何答案。

我可以从 Windows 使用 Gunicorn 部署到 GCloud,还是必须在 Unix 环境中完成?

提前致谢!

4

1 回答 1

0

使用 GCloud 上的 AppEngine,您无需拥有 gunicorn。检查谷歌给出的例子:https ://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/appengine/standard_python3/django

这是requirements.txtDjango==3.2.5 django-environ==0.4.5 psycopg2-binary==2.9.1 google-cloud-secret-manager==2.5.0

于 2021-07-13T17:19:46.203 回答