【发布时间】:2018-12-12 03:52:54
【问题描述】:
在将 Flask/Python3/Postgres 应用程序部署到应用程序引擎标准环境后,我收到了源源不断的以下错误。关于 Psycopg2 包的警告值得关注,但不是导致应用程序无法运行的原因。相反,它是 gunicorn 的无效命令行参数,由 GAE 提供,而不是由我提供。是否有人能够成功地将使用 Postgres 的 Python3 Flask 部署到标准环境?
这是日志文件输出:
2018-12-11 02:51:37 +0000] [3738] [INFO] Booting worker with pid: 3738
2018-12-11 02:51:37 default[20181210t140744] /env/lib/python3.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
2018-12-11 02:51:37 default[20181210t140744] """)
2018-12-11 02:51:38 default[20181210t211942] usage: gunicorn [-h] [--debug] [--args]
2018-12-11 02:51:38 default[20181210t211942] gunicorn: error: unrecognized arguments: main:app --workers 1 -c /config/gunicorn.py
2018-12-11 02:51:38 default[20181210t211942] [2018-12-11 02:51:38 +0000] [882] [INFO] Worker exiting (pid: 882)
【问题讨论】:
-
您能出示您的
app.yaml文件吗?你里面有entrypoint吗?
标签: google-app-engine google-cloud-platform gunicorn